diff --git a/lgsm/functions/core_dl.sh b/lgsm/functions/core_dl.sh index 82dda7277..ae2523545 100644 --- a/lgsm/functions/core_dl.sh +++ b/lgsm/functions/core_dl.sh @@ -83,7 +83,7 @@ fn_dl_steamcmd(){ core_exit.sh # Need tp purchase game. elif [ -n "$(grep "No subscription" "${steamcmdlog}" | tail -1)" ]; then - fn_print_failure_nl "${commandaction} server: ${remotelocation}: Game not owned by any authorised accounts" + fn_print_failure_nl "${commandaction} server: ${remotelocation}: Steam account does not have a license for the required game" fn_script_log_fatal "${commandaction} server: ${remotelocation}: Game not owned by any authorised accounts" core_exit.sh # Two-factor authentication failure diff --git a/lgsm/functions/core_trap.sh b/lgsm/functions/core_trap.sh index f943c5c33..52c00b107 100644 --- a/lgsm/functions/core_trap.sh +++ b/lgsm/functions/core_trap.sh @@ -7,6 +7,9 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" fn_exit_trap(){ + if [ -z "${exitcode}" ]; then + exitcode=$? + fi echo -e "" core_exit.sh }