Go back one Win11 version

This commit is contained in:
Phil 2021-11-17 17:02:20 +00:00 committed by Martin Wimpress
parent 566faa97d8
commit 5e4cd1c397
1 changed files with 4 additions and 0 deletions

View File

@ -1251,6 +1251,10 @@ function get_windows() {
INDEX=1
fi
if [ "${RELEASE}" -eq 11 ]; then
INDEX=1
fi
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}'")))['${INDEX}']')