diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/verify-mirror.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/verify-mirror.sh b/scripts/verify-mirror.sh index 42f10bf..dec79f6 100755 --- a/scripts/verify-mirror.sh +++ b/scripts/verify-mirror.sh @@ -176,7 +176,10 @@ for repo in $REPOS; do failures=$((failures + 1)) continue fi - new_markers="$new_markers $marker" + # One marker per line: the publish step reads the file line by line and + # hands each line to git push as a single refspec. A space separated + # line becomes one bogus refspec ("fatal: invalid refspec"). + new_markers="${new_markers}${marker}"$'\n' done done @@ -184,7 +187,7 @@ say "" say "verified=$verified unchanged=$unchanged pending=$pending failures=$failures" if [ -n "$new_markers" ]; then - printf '%s\n' "${new_markers# }" >"${MARKERS_FILE:-/tmp/mirror-markers}" + printf '%s' "$new_markers" >"${MARKERS_FILE:-/tmp/mirror-markers}" fi [ "$failures" -eq 0 ] || exit 1 |
