]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
change rsync mock no param var
authorBastian Dehn <hhaalo@arcor.de>
Fri, 7 Aug 2026 15:06:03 +0000 (17:06 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 7 Aug 2026 15:06:03 +0000 (17:06 +0200)
tests/backup_tests.bats

index abcc279348c30c0b743d104dd3a6d20450d8c8f2..cbde7232791c0727a85248269c3c392ef2adba80 100755 (executable)
@@ -18,8 +18,7 @@ setup() {
                [ "$RSYNC_LOG_RUNS" -eq "0" ] || return 0
 
                echo "${#@}" > "$RSYNC_LOG"
-               local params=("$@")
-               printf "%s\n" "${params[@]}" >> "$RSYNC_LOG"
+               printf "%s\n" "$@" >> "$RSYNC_LOG"
        }
 }