mirror of
https://gitlab.com/jarylc/docker-duoauthproxy.git
synced 2026-02-11 05:44:16 +00:00
check for the whole python version instead of just major.minor
This commit is contained in:
2
check.sh
2
check.sh
@@ -13,7 +13,7 @@ PYTHON_VERSION=$(curl -s https://duo.com/docs/authproxy-notes | grep -Eo 'Python
|
|||||||
ALPINE_VERSION='edge'
|
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
|
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}"
|
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/}"
|
ALPINE_VERSION="${ALPINE_VERSION/v/}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user