Browse Source

refactor: improve console output in core_dl.sh and linuxgsm.sh

- Refactored code to improve the console output in core_dl.sh and linuxgsm.sh.
- Updated echo statements to provide more informative messages.
- Removed unnecessary characters from the console output.
Daniel Gibbs 2 years ago
parent
commit
91bd38fabf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lgsm/modules/core_dl.sh
  2. 1 1
      linuxgsm.sh

+ 1 - 1
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"
 				"${curlcmd[@]}" --silent --show-error "${fileurl}" 2>&1
 				exitcode="$?"
 			fi

+ 1 - 1
linuxgsm.sh

@@ -136,7 +136,7 @@ fn_bootstrap_fetch_file() {
 					fi
 				fi
 			else
-				echo -en " [ OK ]"
+				echo -en "OK"
 				sleep 0.3
 				echo -en "\033[2K\\r"
 				if [ -f "${lgsmlog}" ]; then