diff --git a/lgsm/modules/core_exit.sh b/lgsm/modules/core_exit.sh index d860cc90e..5f55dfcd1 100644 --- a/lgsm/modules/core_exit.sh +++ b/lgsm/modules/core_exit.sh @@ -45,7 +45,7 @@ elif [ "${exitcode}" -ne 0 ]; then # remove trap. trap - INT exit "${exitcode}" -elif [ "${exitcode}" ] && [ "${exitcode}" -qe 0 ]; then +elif [ "${exitcode}" ] && [ "${exitcode}" -eq 0 ]; then # List LinuxGSM version in logs fn_script_log_info "LinuxGSM version: ${version}" fn_script_log_pass "${moduleselfname} exiting with code: ${exitcode}"