From d6f731e6597049c1cd67516a42a28fc3483bcf35 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sat, 8 Apr 2017 06:33:09 +0700 Subject: [PATCH] sbopkg: Use exit 1 when sync failed. Fixed #29. Signed-off-by: Willy Sudiarto Raharjo --- src/usr/sbin/sbopkg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index f9506cb..a16115e 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -2374,6 +2374,8 @@ rsync_command() { echo "if this problem persists." echo "(TIMEOUT is currently set to: $TIMEOUT seconds)". echo + rm -f $SYNC_LOCK + exit 1 ;; 30) echo @@ -2381,6 +2383,8 @@ rsync_command() { echo "$REPO_LINK may under a heavy load." echo "Please try again later." echo + rm -f $SYNC_LOCK + exit 1 ;; 10) echo @@ -2389,6 +2393,8 @@ rsync_command() { echo "(The repo's LINK is currently set to: $REPO_LINK)." echo "Please check your settings and try again later." echo + rm -f $SYNC_LOCK + exit 1 ;; 0) echo @@ -2405,6 +2411,8 @@ rsync_command() { echo "Rsync with the $REPO_DESC failed." echo "Please try again." echo + rm -f $SYNC_LOCK + exit 1 ;; esac rm -f $SYNC_LOCK