]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-script
Execute rsync command using a subshell
[backup-script.git] / bin / backup-script
index 8a04602420c6c187c0f6c17d8ee3cdc15b642670..21685f8c7905a8c93d19f39dc71854fba252c78c 100755 (executable)
@@ -194,7 +194,7 @@ for f in $sys; do
        count_started=$count_started+1
        rm -f "$target/.stamp"
        
-       $cmd; ret=$?
+       $SHELL -c "$cmd"; ret=$?
        echo "code=$ret" >"$target/.stamp"
 
        if [ $ret -eq 20 ]; then