From: rhatto Date: Wed, 20 Sep 2006 02:44:22 +0000 (+0000) Subject: backupninja: aaahhh, this is hopefully the last backupninja commit of the day :PP... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c2555e48a1b82486be7fe7a080403facf7024fdb;p=slackbuilds.git 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 --- 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