diff --git a/lgsm/functions/core_exit.sh b/lgsm/functions/core_exit.sh index 02b471c78..e7b65f8c2 100644 --- a/lgsm/functions/core_exit.sh +++ b/lgsm/functions/core_exit.sh @@ -26,12 +26,12 @@ elif [ -n "${exitcode}" ]&&[ "${exitcode}" != "0" ]; then fn_exit_dev_debug # remove trap. trap - INT - exit ${exitcode} + exit "${exitcode}" else exitcode=0 fn_script_log_pass "${function_selfname} exiting with code: ${exitcode}" fn_exit_dev_debug # remove trap. trap - INT - exit ${exitcode} + exit "${exitcode}" fi