feat: Enable optional logging and syntax checking for install.bat (#1964)

This commit is contained in:
Kroese
2026-07-25 20:00:11 +02:00
committed by GitHub
parent 213245e5c9
commit da7dd544b3
5 changed files with 382 additions and 167 deletions
+13 -2
View File
@@ -401,10 +401,21 @@ downloadWindowsEval() {
esac
if enabled "$DEBUG" && enabled "$VERIFY" && [[ "${lang,,}" == "en"* ]]; then
compare=$(getMido "$id" "$lang" "")
if [ -n "$compare" ] && [[ "${link,,}" != "${compare,,}" ]]; then
echo "Retrieved link does not match the fixed link: $compare"
if [ -n "$compare" ]; then
link_name="${link%%[?#]*}"
link_name="${link_name##*/}"
compare_name="${compare%%[?#]*}"
compare_name="${compare_name##*/}"
if [[ "${link_name,,}" != "${compare_name,,}" ]]; then
echo "Retrieved ISO file $link_name does not match the pre-defined filename: $compare_name"
fi
fi
fi
MIDO_URL="$link"