diff --git a/lgsm/functions/core_trap.sh b/lgsm/functions/core_trap.sh index c4c438611..77e78a438 100644 --- a/lgsm/functions/core_trap.sh +++ b/lgsm/functions/core_trap.sh @@ -6,7 +6,9 @@ fn_exit_trap(){ echo -e "" - exitcode=0 + if [ -z "${exitcode}" ]; then + exitcode=0 + fi core_exit.sh }