Parcourir la source

refactor: improve logging message in fn_fetch_file

The logging message in the fn_fetch_file function has been improved to provide a more concise and informative output. Instead of mentioning the local filename separately, it is now included within the same line as the file URL name. This change enhances readability and clarity when fetching files.
Daniel Gibbs il y a 2 ans
Parent
commit
88e25910a6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lgsm/modules/core_dl.sh

+ 1 - 1
lgsm/modules/core_dl.sh

@@ -403,7 +403,7 @@ fn_fetch_file() {
 				"${curlcmd[@]}" --progress-bar "${fileurl}" 2>&1
 				"${curlcmd[@]}" --progress-bar "${fileurl}" 2>&1
 				exitcode="$?"
 				exitcode="$?"
 			else
 			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
 				"${curlcmd[@]}" --silent --show-error "${fileurl}" 2>&1
 				exitcode="$?"
 				exitcode="$?"
 			fi
 			fi