mirror of
https://github.com/dockur/windows.git
synced 2026-08-05 13:37:22 +01:00
fix: Remove suffix for ESD files (#2052)
This commit is contained in:
+4
-7
@@ -1043,12 +1043,9 @@ downloadFile() {
|
|||||||
local web_desc="$5"
|
local web_desc="$5"
|
||||||
local connections="${6:-1}"
|
local connections="${6:-1}"
|
||||||
|
|
||||||
local domain parent suffix=""
|
local domain parent
|
||||||
|
local msg="Downloading $web_desc"
|
||||||
[[ "${iso,,}" == *.esd ]] && suffix=" ESD file"
|
local console_msg="Downloading $desc"
|
||||||
|
|
||||||
local msg="Downloading $web_desc$suffix"
|
|
||||||
local console_msg="Downloading $desc$suffix"
|
|
||||||
|
|
||||||
# Keep mirror messages concise by reducing subdomains to the final two
|
# Keep mirror messages concise by reducing subdomains to the final two
|
||||||
# labels, while Microsoft downloads retain the generic description.
|
# labels, while Microsoft downloads retain the generic description.
|
||||||
@@ -1061,7 +1058,7 @@ downloadFile() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$domain" ] && [[ "${domain,,}" != *"microsoft.com" ]]; then
|
if [ -n "$domain" ] && [[ "${domain,,}" != *"microsoft.com" ]]; then
|
||||||
console_msg="Downloading $desc$suffix from $domain"
|
console_msg="Downloading $desc from $domain"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "$console_msg..."
|
info "$console_msg..."
|
||||||
|
|||||||
Reference in New Issue
Block a user