|
@@ -6,7 +6,7 @@ lgsm_version="210516"
|
|
|
|
|
|
|
|
# Description: handles exiting of LGSM by running and reporting an exit code.
|
|
# Description: handles exiting of LGSM by running and reporting an exit code.
|
|
|
|
|
|
|
|
-if [ "${exitcode}" != "0" ]; then
|
|
|
|
|
|
|
+if [ -n "${exitcode}" ]||[ "${exitcode}" != "0" ]; then
|
|
|
if [ "${exitcode}" == "1" ]; then
|
|
if [ "${exitcode}" == "1" ]; then
|
|
|
fn_script_log_fatal "Exiting with code: ${exitcode}"
|
|
fn_script_log_fatal "Exiting with code: ${exitcode}"
|
|
|
elif [ "${exitcode}" == "2" ]; then
|
|
elif [ "${exitcode}" == "2" ]; then
|
|
@@ -17,6 +17,8 @@ if [ "${exitcode}" != "0" ]; then
|
|
|
fn_script_log "Exiting with code: ${exitcode}"
|
|
fn_script_log "Exiting with code: ${exitcode}"
|
|
|
fi
|
|
fi
|
|
|
exit ${exitcode}
|
|
exit ${exitcode}
|
|
|
|
|
+else
|
|
|
|
|
+ exitcode=0
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
if [ -f ".dev-debug" ]; then
|
|
if [ -f ".dev-debug" ]; then
|