mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03:00
sbopkg: Use exit 1 when sync failed.
Fixed #29. Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
parent
6057d06d2b
commit
d6f731e659
@ -2374,6 +2374,8 @@ rsync_command() {
|
|||||||
echo "if this problem persists."
|
echo "if this problem persists."
|
||||||
echo "(TIMEOUT is currently set to: $TIMEOUT seconds)".
|
echo "(TIMEOUT is currently set to: $TIMEOUT seconds)".
|
||||||
echo
|
echo
|
||||||
|
rm -f $SYNC_LOCK
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
30)
|
30)
|
||||||
echo
|
echo
|
||||||
@ -2381,6 +2383,8 @@ rsync_command() {
|
|||||||
echo "$REPO_LINK may under a heavy load."
|
echo "$REPO_LINK may under a heavy load."
|
||||||
echo "Please try again later."
|
echo "Please try again later."
|
||||||
echo
|
echo
|
||||||
|
rm -f $SYNC_LOCK
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
10)
|
10)
|
||||||
echo
|
echo
|
||||||
@ -2389,6 +2393,8 @@ rsync_command() {
|
|||||||
echo "(The repo's LINK is currently set to: $REPO_LINK)."
|
echo "(The repo's LINK is currently set to: $REPO_LINK)."
|
||||||
echo "Please check your settings and try again later."
|
echo "Please check your settings and try again later."
|
||||||
echo
|
echo
|
||||||
|
rm -f $SYNC_LOCK
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
0)
|
0)
|
||||||
echo
|
echo
|
||||||
@ -2405,6 +2411,8 @@ rsync_command() {
|
|||||||
echo "Rsync with the $REPO_DESC failed."
|
echo "Rsync with the $REPO_DESC failed."
|
||||||
echo "Please try again."
|
echo "Please try again."
|
||||||
echo
|
echo
|
||||||
|
rm -f $SYNC_LOCK
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
rm -f $SYNC_LOCK
|
rm -f $SYNC_LOCK
|
||||||
|
Loading…
Reference in New Issue
Block a user