aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2006-06-09 11:34:42 +0000
committerintrigeri <intrigeri@boum.org>2006-06-09 11:34:42 +0000
commit8589faa7f04c8d29298da45ad17ffecacc4498cb (patch)
tree88da1ce5769b66bc36301956b3e31e8a78b473bc
parentc1c28e70326ebf75b37d0594df88adaf24045187 (diff)
downloadbackupninja-8589faa7f04c8d29298da45ad17ffecacc4498cb.tar.gz
backupninja-8589faa7f04c8d29298da45ad17ffecacc4498cb.tar.bz2
Applied Anarcat's patch to fix rdiff's $test
-rw-r--r--handlers/rdiff4
1 files changed, 2 insertions, 2 deletions
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