From 418ca57dc3cce75240f9aeb626b23475d56f034d Mon Sep 17 00:00:00 2001 From: Matteo Cherubini Date: Sun, 21 Jun 2026 00:42:16 +0200 Subject: [PATCH] refactor: Translate script comments from Italian to English --- deploy/nexus/genome-raw-commit.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy/nexus/genome-raw-commit.sh b/deploy/nexus/genome-raw-commit.sh index 12a044a..39c6c76 100644 --- a/deploy/nexus/genome-raw-commit.sh +++ b/deploy/nexus/genome-raw-commit.sh @@ -48,13 +48,13 @@ if git diff --cached --quiet; then exit 0 fi -resolve_dev() { # $1 = path relativo al vault (raw/...) -> stampa lo short device id o vuoto +resolve_dev() { # $1 = path relative to the vault (raw/...) -> prints the short device id, or empty [[ -z "${SYNCTHING_API_KEY:-}" ]] && return 0 curl -fsS -H "X-API-Key: ${SYNCTHING_API_KEY}" --get "${SYNCTHING_URL}/rest/db/file" \ --data-urlencode "folder=${fid}" --data-urlencode "file=${1#raw/}" 2>/dev/null \ | jq -r '.local.modifiedBy // empty' 2>/dev/null || true } -author_for_dev() { # $1 = device id -> stampa "name\temail" +author_for_dev() { # $1 = device id -> prints "name\temail" local dev="$1" name="$DEFAULT_AUTHOR_NAME" email="$DEFAULT_AUTHOR_EMAIL" if [[ -n "$dev" && -f "$authors_map" ]] && jq -e --arg d "$dev" '.[$d]' "$authors_map" >/dev/null 2>&1; then name="$(jq -r --arg d "$dev" '.[$d].name' "$authors_map")" @@ -63,7 +63,7 @@ author_for_dev() { # $1 = device id -> stampa "name\temail" printf '%s\t%s' "$name" "$email" } -# raccolgo per-file (relpath, author) e raggruppo per autore per il commit +# Collect per-file (relpath, author) and group by author for committing declare -A G_FILES G_NAME G_EMAIL declare -a ROWS while IFS= read -r f; do @@ -88,7 +88,7 @@ for key in "${!G_FILES[@]}"; do summary="${summary}${summary:+; }${G_NAME[$key]}:${short}" done -# incorporo eventuali avanzamenti del remoto (es. PR wiki mergiata), poi pusho +# Pull in any remote advances (e.g. a merged wiki PR), then push git fetch -q origin if git show-ref --verify --quiet "refs/remotes/origin/${GENOME_BASE}"; then git rebase -q "origin/${GENOME_BASE}" \ @@ -97,7 +97,7 @@ fi git push -q "$clone_url" "HEAD:${GENOME_BASE}" head="$(git rev-parse --short HEAD)" -# array `files`: link locale (file://) e remoto (Forgejo web) per ogni raw committata +# `files` array: local (file://) and remote (Forgejo web) link for each committed raw files_json="$( for row in "${ROWS[@]}"; do IFS=$'\t' read -r rel aname <<< "$row"