Skip to content

Commit

Permalink
feat: improve fetch file output
Browse files Browse the repository at this point in the history
- Updated the fetch file function in core_dl.sh and linuxgsm.sh to provide more informative output.
- Replaced the parentheses with square brackets to enclose the local filename.
- Added italics formatting to highlight the local filename.
  • Loading branch information
dgibbs64 committed Sep 27, 2023
1 parent 604e312 commit c091a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lgsm/modules/core_dl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ fn_fetch_file() {
"${curlcmd[@]}" --progress-bar "${fileurl}" 2>&1
exitcode="$?"
else
echo -en "fetching ${fileurl_name} ${local_filename}...\c"
echo -en "fetching ${fileurl_name} [ ${italic}${local_filename}${default} ]\c"
"${curlcmd[@]}" --silent --show-error "${fileurl}" 2>&1
exitcode="$?"
fi
Expand Down
2 changes: 1 addition & 1 deletion linuxgsm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn_bootstrap_fetch_file() {
trap fn_fetch_trap INT
# Larger files show a progress bar.

echo -en "fetching ${fileurl_name} ( ${local_filename} )\c"
echo -en "fetching ${fileurl_name} [ ${local_filename} ]\c"
curlcmd=$(curl --connect-timeout 10 -s --fail -L -o "${local_filedir}/${local_filename}" "${fileurl}" 2>&1)

local exitcode=$?
Expand Down

0 comments on commit c091a1d

Please sign in to comment.