Ignore the most recent Windows 10 release for now. Close #170

This commit is contained in:
Martin Wimpress 2021-10-28 22:42:17 +01:00
parent 0bfdfe36a0
commit df53c3be0a
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 1 deletions

View File

@ -919,7 +919,7 @@ function get_windows() {
echo "Getting Windows ${RELEASE} URL..."
WINDOWS_VERSIONS=$(wget -q -O- "https://tb.rg-adguard.net/php/get_version.php?type_id=1" | jq '.versions | sort_by(-(.version_id | tonumber))')
LATEST_WINDOWS_VERSION=$(echo "${WINDOWS_VERSIONS}" | jq -c 'map(select(.name | contains("Windows '${RELEASE}'")))[0]')
LATEST_WINDOWS_VERSION=$(echo "${WINDOWS_VERSIONS}" | jq -c 'map(select(.name | contains("Windows '${RELEASE}'")))[1]')
WINDOWS_NAME=$(echo "${LATEST_WINDOWS_VERSION}" | jq -r .name)
VERSION_ID=$(echo "${LATEST_WINDOWS_VERSION}" | jq -r .version_id)