From df53c3be0afef3eb5ef77cf7c377ff1160505a5e Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 28 Oct 2021 22:42:17 +0100 Subject: [PATCH] Ignore the most recent Windows 10 release for now. Close #170 --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index e8606c5..e923f81 100755 --- a/quickget +++ b/quickget @@ -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)