From 8046f9e6d8680e02007c0853be2f1f61f7220715 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 4 May 2011 17:47:07 +0200 Subject: [PATCH] Execute rsync command using a subshell --- bin/backup-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/backup-script b/bin/backup-script index 8a04602..21685f8 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -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 -- 2.39.2