]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
change less io for rsync log
authorBastian Dehn <hhaalo@arcor.de>
Thu, 6 Aug 2026 17:14:50 +0000 (19:14 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 6 Aug 2026 17:14:50 +0000 (19:14 +0200)
tests/backup_tests.bats

index aad412574673a5cf872cb29957d97ad29f4a8e17..abcc279348c30c0b743d104dd3a6d20450d8c8f2 100755 (executable)
@@ -18,9 +18,8 @@ setup() {
                [ "$RSYNC_LOG_RUNS" -eq "0" ] || return 0
 
                echo "${#@}" > "$RSYNC_LOG"
-               for i in $(seq 1 "${#@}"); do
-                       echo "${@:i:1}" >> "$RSYNC_LOG"
-               done
+               local params=("$@")
+               printf "%s\n" "${params[@]}" >> "$RSYNC_LOG"
        }
 }