1
0
mirror of https://gitlab.com/jarylc/docker-duoauthproxy.git synced 2026-02-04 11:31:45 +00:00

check for the whole python version instead of just major.minor

This commit is contained in:
Jaryl Chng
2025-11-14 16:06:28 +08:00
parent a9bf22f9a5
commit b0cfb4fede

View File

@@ -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