From: intrigeri Date: Fri, 9 Jun 2006 11:34:42 +0000 (+0000) Subject: Applied Anarcat's patch to fix rdiff's $test X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=adcc0a1590cb46106aa476e586b8c58a8be24130;p=matthijs%2Fupstream%2Fbackupninja.git Applied Anarcat's patch to fix rdiff's $test git-svn-id: http://code.autistici.org/svn/backupninja/trunk@405 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/handlers/rdiff b/handlers/rdiff index 88aeaf3..8faca9d 100644 --- a/handlers/rdiff +++ b/handlers/rdiff @@ -155,7 +155,7 @@ fi removestr="${removestr}${destdir}/${label}"; debug "$removestr" -if [ ! $test ]; then +if [ $test = 0 ]; then output=`$removestr 2>&1` if [ $? = 0 ]; then debug $output @@ -221,7 +221,7 @@ execstr="${execstr}--exclude '/*' " execstr="${execstr}$execstr_sourcepart $execstr_destpart" debug "$execstr" -if [ ! $test ]; then +if [ $test = 0 ]; then output=`nice -n $nicelevel su -c "$execstr" 2>&1` if [ $? = 0 ]; then debug $output