]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
change exclude rsync param without quotes
authorBastian Dehn <hhaalo@arcor.de>
Sat, 8 Aug 2026 08:46:02 +0000 (10:46 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 8 Aug 2026 08:46:02 +0000 (10:46 +0200)
src/backup
tests/backup_tests.bats

index f2d175e1d6716c6edde2a1413f121612bacad6fc..81c2befaa0df4d5ace2a46b86396b085deca8b7e 100755 (executable)
@@ -168,7 +168,7 @@ path_backup()
                "--human-readable")
        local exclude=
        for exclude in "${excludes[@]}"; do
-               rsyncargs+=("--exclude=\"$exclude\"")
+               rsyncargs+=("--exclude=$exclude")
        done
        rsyncargs+=("--rsh=\"ssh -p $port\"")
        local hostpath="$remote_user@$host:$path"
index b55e9afca823dbc151a98c53e1f94c6bb2b544e2..5bfd121f03189a85757587988e1825834e6e142b 100755 (executable)
@@ -544,8 +544,8 @@ teardown() {
        assert_equal "$(awk 'NR==6 {print; exit}' "$RSYNC_LOG")" "--hard-links"
        assert_equal "$(awk 'NR==7 {print; exit}' "$RSYNC_LOG")" "--relative"
        assert_equal "$(awk 'NR==8 {print; exit}' "$RSYNC_LOG")" "--human-readable"
-       assert_equal "$(awk 'NR==9 {print; exit}' "$RSYNC_LOG")" "--exclude=\"/home/user/.cache\""
-       assert_equal "$(awk 'NR==10 {print; exit}' "$RSYNC_LOG")" "--exclude=\"/home/user/.local\""
+       assert_equal "$(awk 'NR==9 {print; exit}' "$RSYNC_LOG")" "--exclude=/home/user/.cache"
+       assert_equal "$(awk 'NR==10 {print; exit}' "$RSYNC_LOG")" "--exclude=/home/user/.local"
        assert_equal "$(awk 'NR==11 {print; exit}' "$RSYNC_LOG")" "--rsh=\"ssh -p 22\""
        assert_equal "$(awk 'NR==12 {print; exit}' "$RSYNC_LOG")" "backupuser@www.example.com:/etc"
        assert_equal "$(awk 'NR==13 {print; exit}' "$RSYNC_LOG")" "build/2000-01-01_01_backup/testpc1"