diff --git a/check.sh b/check.sh index e43fdba..f0f77b4 100755 --- a/check.sh +++ b/check.sh @@ -13,7 +13,7 @@ PYTHON_VERSION=$(curl -s https://duo.com/docs/authproxy-notes | grep -Eo 'Python ALPINE_VERSION='edge' for ALPINE_VERSION in $(curl -s "https://pkgs.alpinelinux.org/packages?name=python${PYTHON_VERSION%.*.*}" | htmlq -w --text 'select#branch > option' | grep -v 'Branch' | grep -v 'edge' | xargs); do echo "Checking Alpine version: ${ALPINE_VERSION}" - if curl -s "https://pkgs.alpinelinux.org/packages?name=python${PYTHON_VERSION%.*.*}&branch=${ALPINE_VERSION}" | grep -q ${PYTHON_VERSION%.*}; then + if curl -s "https://pkgs.alpinelinux.org/packages?name=python${PYTHON_VERSION%.*.*}&branch=${ALPINE_VERSION}" | grep -q ${PYTHON_VERSION}; then ALPINE_VERSION="${ALPINE_VERSION/v/}" fi done