diff --git a/bin/update b/bin/update index a3a0969..4e72c21 100755 --- a/bin/update +++ b/bin/update @@ -398,8 +398,9 @@ main() { if [ $# -eq 0 ]; then _lock_or_error_message - if [ $? -ne 0 ]; then - return $? + local error_code=$? + if [ $error_code -ne 0 ]; then + exit $error_code fi local start=`date +%s` @@ -467,8 +468,9 @@ main() { if [ $lock_required -eq 0 ]; then _lock_or_error_message - if [ $? -ne 0 ]; then - return $? + local error_code=$? + if [ $error_code -ne 0 ]; then + exit $error_code fi fi