From 3482eea8928af118c70cd39872075fd7ebe0716c Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 14 Sep 2025 21:21:40 +0200 Subject: [PATCH] feat: Check returned link Add error handling for empty download link. --- src/mido.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mido.sh b/src/mido.sh index 9e86600..8828339 100644 --- a/src/mido.sh +++ b/src/mido.sh @@ -297,6 +297,7 @@ download_windows_eval() { esac [[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link" + [ -z "$iso_download_link" ] && error "Could not parse download link from page!" && return 1 # Follow redirect so proceeding log message is useful # This is a request we make that Fido doesn't