fix: Debug messages

This commit is contained in:
Kroese 2025-10-01 16:44:23 +02:00 committed by GitHub
parent ea483d1557
commit 3d051f3437
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,6 +171,8 @@ download_windows() {
return 1 return 1
fi fi
[[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
MIDO_URL="$iso_download_link" MIDO_URL="$iso_download_link"
return 0 return 0
} }
@ -295,7 +297,6 @@ download_windows_eval() {
error "Invalid type specified, value \"$enterprise_type\" is not recognized!" && return 1 ;; error "Invalid type specified, value \"$enterprise_type\" is not recognized!" && return 1 ;;
esac esac
[[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
[ -z "$iso_download_link" ] && error "Could not parse download link from page!" && return 1 [ -z "$iso_download_link" ] && error "Could not parse download link from page!" && return 1
# Follow redirect so proceeding log message is useful # Follow redirect so proceeding log message is useful
@ -307,6 +308,8 @@ download_windows_eval() {
return $? return $?
} }
[[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
case "${PLATFORM,,}" in case "${PLATFORM,,}" in
"x64" ) "x64" )
if [[ "${iso_download_link,,}" != *"x64"* ]]; then if [[ "${iso_download_link,,}" != *"x64"* ]]; then