Exit with error code
This commit is contained in:
+6
-4
@@ -398,8 +398,9 @@ main() {
|
|||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
_lock_or_error_message
|
_lock_or_error_message
|
||||||
if [ $? -ne 0 ]; then
|
local error_code=$?
|
||||||
return $?
|
if [ $error_code -ne 0 ]; then
|
||||||
|
exit $error_code
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local start=`date +%s`
|
local start=`date +%s`
|
||||||
@@ -467,8 +468,9 @@ main() {
|
|||||||
|
|
||||||
if [ $lock_required -eq 0 ]; then
|
if [ $lock_required -eq 0 ]; then
|
||||||
_lock_or_error_message
|
_lock_or_error_message
|
||||||
if [ $? -ne 0 ]; then
|
local error_code=$?
|
||||||
return $?
|
if [ $error_code -ne 0 ]; then
|
||||||
|
exit $error_code
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user