mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 12:15:50 +00:00
Update install.sh
This commit is contained in:
parent
d2d5e9fae2
commit
ad8d81a77d
1 changed files with 4 additions and 3 deletions
|
|
@ -307,8 +307,8 @@ verifyFile() {
|
||||||
[ -z "$check" ] && return 0
|
[ -z "$check" ] && return 0
|
||||||
[[ "${#check}" == "40" ]] && algo="SHA1"
|
[[ "${#check}" == "40" ]] && algo="SHA1"
|
||||||
|
|
||||||
html "Verifying downloaded ISO..."
|
local msg="Verifying downloaded ISO..."
|
||||||
info "Calculating $algo checksum of the ISO file..."
|
info "$msg" && html "$msg"
|
||||||
|
|
||||||
if [[ "${algo,,}" != "sha256" ]]; then
|
if [[ "${algo,,}" != "sha256" ]]; then
|
||||||
hash=$(sha1sum "$iso" | cut -f1 -d' ')
|
hash=$(sha1sum "$iso" | cut -f1 -d' ')
|
||||||
|
|
@ -345,6 +345,7 @@ downloadFile() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local msg="Downloading $desc..."
|
local msg="Downloading $desc..."
|
||||||
|
html "$msg"
|
||||||
|
|
||||||
domain=$(echo "$url" | awk -F/ '{print $3}')
|
domain=$(echo "$url" | awk -F/ '{print $3}')
|
||||||
dots=$(echo "$domain" | tr -cd '.' | wc -c)
|
dots=$(echo "$domain" | tr -cd '.' | wc -c)
|
||||||
|
|
@ -354,7 +355,7 @@ downloadFile() {
|
||||||
msg="Downloading $desc from $domain..."
|
msg="Downloading $desc from $domain..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "$msg" && html "$msg"
|
info "$msg"
|
||||||
/run/progress.sh "$iso" "$size" "Downloading $desc ([P])..." &
|
/run/progress.sh "$iso" "$size" "Downloading $desc ([P])..." &
|
||||||
|
|
||||||
{ wget "$url" -O "$iso" -q --timeout=10 --show-progress "$progress"; rc=$?; } || :
|
{ wget "$url" -O "$iso" -q --timeout=10 --show-progress "$progress"; rc=$?; } || :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue