From 83d6fda4c6cd2b0da57f39b84777f82c356fc7ab Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 26 Sep 2023 23:55:01 +0100 Subject: [PATCH] refactor: improve console output for checking and fetching files - Updated the console output in `command_update_linuxgsm.sh` to include formatting and improved readability. - Improved the console output in `core_dl.sh` to include formatting and better indicate the progress of file fetching. --- lgsm/modules/command_update_linuxgsm.sh | 2 +- lgsm/modules/core_dl.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/command_update_linuxgsm.sh b/lgsm/modules/command_update_linuxgsm.sh index 21c495494..1a958fd4b 100644 --- a/lgsm/modules/command_update_linuxgsm.sh +++ b/lgsm/modules/command_update_linuxgsm.sh @@ -68,7 +68,7 @@ fi # Check gameserver.sh # Compare gameserver.sh against linuxgsm.sh in the tmp dir. # Ignoring server specific vars. -echo -en "checking ${selfname}...\c" +echo -en "${dim}checking ${selfname} ...\c${default}" fn_script_log_info "Checking ${selfname}" script_diff=$(diff <(sed '\/shortname/d;\/gameservername/d;\/gamename/d;\/githubuser/d;\/githubrepo/d;\/githubbranch/d' "${tmpdir}/linuxgsm.sh") <(sed '\/shortname/d;\/gameservername/d;\/gamename/d;\/githubuser/d;\/githubrepo/d;\/githubbranch/d' "${rootdir}/${selfname}")) if [ "${script_diff}" != "" ]; then diff --git a/lgsm/modules/core_dl.sh b/lgsm/modules/core_dl.sh index f1ead8d35..fee9a20e1 100644 --- a/lgsm/modules/core_dl.sh +++ b/lgsm/modules/core_dl.sh @@ -403,7 +403,7 @@ fn_fetch_file() { "${curlcmd[@]}" --progress-bar "${fileurl}" 2>&1 exitcode="$?" else - echo -en "${dim}fetching from ${fileurl_name} ( ${local_filename} )\c${default}" + echo -en "${dim}fetching from ${fileurl_name} ( ${local_filename} ) ... \c${default}" "${curlcmd[@]}" --silent --show-error "${fileurl}" 2>&1 exitcode="$?" fi