aboutsummaryrefslogtreecommitdiff
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
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
-rwxr-xr-xbackupninja/backupninja.SlackBuild2
-rw-r--r--backupninja/rub4
2 files changed, 3 insertions, 3 deletions
diff --git a/backupninja/backupninja.SlackBuild b/backupninja/backupninja.SlackBuild
index 4647188f..ac7cdbbf 100755
--- a/backupninja/backupninja.SlackBuild
+++ b/backupninja/backupninja.SlackBuild
@@ -18,7 +18,7 @@ fi
PACKAGE="backupninja"
ARCH="noarch"
VERSION=${VERSION:=0.9.3}
-BUILD=${BUILD:=26rha}
+BUILD=${BUILD:=1rha}
SRC_DIR=${SRC:=$CWD}
TMP=${TMP:=/tmp}
REPOS=${REPOS:=$TMP}
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