From 329d779e5622c7c6d16b4a7e59bc3c658a7d141d Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 29 Sep 2024 22:09:41 +0100 Subject: [PATCH] ui updates --- lgsm/modules/core_dl.sh | 4 ++-- linuxgsm.sh | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lgsm/modules/core_dl.sh b/lgsm/modules/core_dl.sh index 00273fc5e..6ca52ceeb 100644 --- a/lgsm/modules/core_dl.sh +++ b/lgsm/modules/core_dl.sh @@ -277,11 +277,11 @@ fn_dl_extract() { # Trap to remove file download if canceled before completed. fn_fetch_trap() { echo -e "" - echo -en "downloading ${local_filename}..." + echo -en "downloading ${local_filename}" fn_print_canceled_eol_nl fn_script_log_info "Downloading ${local_filename}...CANCELED" rm -f "${local_filedir:?}/${local_filename}" - echo -en "downloading ${local_filename}..." + echo -en "downloading ${local_filename}" fn_print_removed_eol_nl fn_script_log_info "Downloading ${local_filename}...REMOVED" core_exit.sh diff --git a/linuxgsm.sh b/linuxgsm.sh index feeae4a05..9847c31ef 100755 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -72,11 +72,11 @@ core_modules.sh() { # Fetches the core modules required before passed off to core_dl.sh. fn_bootstrap_fetch_trap() { echo -e "" - echo -en "downloading ${local_filename}..." + echo -en "downloading ${local_filename}" fn_print_canceled_eol_nl fn_script_log_info "Downloading ${local_filename}...CANCELED" rm -f "${local_filedir:?}/${local_filename}" - echo -en "downloading ${local_filename}..." + echo -en "downloading ${local_filename}" fn_print_removed_eol_nl fn_script_log_info "Downloading ${local_filename}...REMOVED" core_exit.sh @@ -418,9 +418,10 @@ else fi if [ ! -f "${configdirserver}/_default.cfg" ]; then mkdir -p "${configdirserver}" - echo -en "copying _default.cfg...\c" + echo -en "copying _default.cfg\c" cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg" - if [ $? != 0 ]; then + exitcode=$? + if [ "${exitcode}" != 0 ]; then echo -e " ... FAIL" exit 1 else