Skip to content

Commit

Permalink
send/get tarball filename for DL
Browse files Browse the repository at this point in the history
  • Loading branch information
plowsof committed Oct 1, 2024
1 parent 3eb691b commit 5e790de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ download_tarball_from_mirrors() {

for url in "${url_array[@]}"; do
echo "Trying to download from $url"
if download_tarball "$url" "$md5sum"; then
local filename=$(basename "$(echo "$url" | cut -d ',' -f 1)")
if download_file "$url" "$filename" "$md5sum"; then
echo "Downloaded successfully from $url"
return 0
else
Expand Down

0 comments on commit 5e790de

Please sign in to comment.