fix: Remove suffix for ESD files (#2052)

This commit is contained in:
Kroese
2026-08-05 07:20:32 +02:00
committed by GitHub
parent 392b96a541
commit 38e8da4aa3
+4 -7
View File
@@ -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..."