aboutsummaryrefslogtreecommitdiff
path: root/backupninja/rub
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-09-20 02:44:22 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-09-20 02:44:22 +0000
commitc2555e48a1b82486be7fe7a080403facf7024fdb (patch)
treec7d0b77cd00afe9c28d1d488a2ade9fd1001ed50 /backupninja/rub
parenta2b0687b4ed4ddc746380ba0576ae97bb0a33d91 (diff)
downloadslackbuilds-c2555e48a1b82486be7fe7a080403facf7024fdb.tar.gz
slackbuilds-c2555e48a1b82486be7fe7a080403facf7024fdb.tar.bz2
backupninja: aaahhh, this is hopefully the last backupninja commit of the day :PP, changed build number back to 1 and corected a small bug in the rub handler
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@250 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'backupninja/rub')
-rw-r--r--backupninja/rub4
1 files changed, 2 insertions, 2 deletions
diff --git a/backupninja/rub b/backupninja/rub
index dc6a3f1c..efdfa171 100644
--- a/backupninja/rub
+++ b/backupninja/rub
@@ -141,7 +141,7 @@ for SECTION in $include; do
if [ "$from" == "local" ]; then
$rsync $EXCLUDES /$SECTION/ $backupdir/$SECTION/$section.0/ >> $log
- if [ "$?" != "0" ];
+ if [ "$?" != "0" ]; then
error "Rsync error when trying to transfer $SECTION"
fi
elif [ "$from" == "remote" ]; then
@@ -150,7 +150,7 @@ for SECTION in $include; do
exit 1
else
$rsync $EXCLUDES -e "$ssh" $user@$host:/$SECTION/ $backupdir/$SECTION/$section.0 >> $log
- if [ "$?" != "0" ];
+ if [ "$?" != "0" ]; then
error "Rsync error when trying to transfer $SECTION"
fi
fi