feat: Check returned link

Add error handling for empty download link.
This commit is contained in:
Kroese 2025-09-14 21:21:40 +02:00 committed by GitHub
parent 2983b2b677
commit 3482eea892
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -297,6 +297,7 @@ download_windows_eval() {
esac esac
[[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link" [[ "$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 # Follow redirect so proceeding log message is useful
# This is a request we make that Fido doesn't # This is a request we make that Fido doesn't