mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 03:45:48 +00:00
Update mido.sh
This commit is contained in:
parent
561a560b62
commit
f2019f4876
1 changed files with 5 additions and 5 deletions
10
src/mido.sh
10
src/mido.sh
|
|
@ -519,19 +519,19 @@ downloadFile() {
|
|||
progress="--progress=dot:giga"
|
||||
fi
|
||||
|
||||
local msg="Downloading $desc..."
|
||||
html "$msg"
|
||||
local msg="Downloading $desc"
|
||||
html "$msg..."
|
||||
|
||||
domain=$(echo "$url" | awk -F/ '{print $3}')
|
||||
dots=$(echo "$domain" | tr -cd '.' | wc -c)
|
||||
(( dots > 1 )) && domain=$(expr "$domain" : '.*\.\(.*\..*\)')
|
||||
|
||||
if [ -n "$domain" ] && [[ "${domain,,}" != *"microsoft.com" ]]; then
|
||||
msg="Downloading $desc from $domain..."
|
||||
msg="Downloading $desc from $domain"
|
||||
fi
|
||||
|
||||
info "$msg"
|
||||
/run/progress.sh "$iso" "$size" "Downloading $desc ([P])..." &
|
||||
info "$msg..."
|
||||
/run/progress.sh "$iso" "$size" "$msg ([P])..." &
|
||||
|
||||
{ wget "$url" -O "$iso" -q --timeout=30 --show-progress "$progress"; rc=$?; } || :
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue