sbopkg: Use exit 1 when sync failed.

Fixed #29.

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-04-08 06:33:09 +07:00
parent 6057d06d2b
commit d6f731e659
No known key found for this signature in database
GPG Key ID: 887B8374D7333381

View File

@ -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