Fix windows downloads

This commit is contained in:
Liam 2024-04-21 17:58:58 -07:00 committed by Martin Wimpress
parent d2081b53ac
commit 9ad1be3ec1
1 changed files with 1 additions and 1 deletions

View File

@ -3307,7 +3307,7 @@ function download_windows_workstation() {
# Filter for 64-bit ISO download URL # Filter for 64-bit ISO download URL
# sed: HTML decode "&" character # sed: HTML decode "&" character
# tr: Filter for only alphanumerics or punctuation # tr: Filter for only alphanumerics or punctuation
local iso_download_link="$(echo "$iso_download_link_html" | grep -o "https://software.download.prss.microsoft.com.*IsoX64" | cut -d '"' -f 1 | sed 's/&/\&/g' | tr -cd '[:alnum:][:punct:]' | head -c 512)" local iso_download_link="$(echo "$iso_download_link_html" | grep -o "https://software.download.prss.microsoft.com.*IsoX64" | cut -d '"' -f 1 | sed 's/&/\&/g' | tr -cd '[:alnum:][:punct:]')"
if ! [ "$iso_download_link" ]; then if ! [ "$iso_download_link" ]; then
# This should only happen if there's been some change to the download endpoint web address # This should only happen if there's been some change to the download endpoint web address