From b0cfb4fede254f9d97f31932895770dab9ba38b2 Mon Sep 17 00:00:00 2001 From: Jaryl Chng Date: Fri, 14 Nov 2025 16:06:28 +0800 Subject: [PATCH] check for the whole python version instead of just major.minor --- check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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