diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 55936a6..64a0815 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -63,7 +63,7 @@ join() { echo "${out#$sep}" } -latest="$(curl -fsSL 'https://www.phpmyadmin.net/home_page/version.json' | jq -r '.version')" +latest="$(curl -fsSL 'https://www.phpmyadmin.net/home_page/version.json' | jq -r '.version' | grep -E '^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$')" for variant in apache fpm fpm-alpine; do commit="$(dirCommit "$variant")" diff --git a/update.sh b/update.sh index bfea842..610cbec 100755 --- a/update.sh +++ b/update.sh @@ -88,7 +88,7 @@ command -v jq >/dev/null 2>&1 || { echo >&2 "'jq' is required but not found. Abo # Create variants printf '%s\n' "{}" > versions.json -latest="$(curl -fsSL "https://www.phpmyadmin.net/home_page/version.json" | jq -r '.version')" +latest="$(curl -fsSL 'https://www.phpmyadmin.net/home_page/version.json' | jq -r '.version' | grep -E '^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$')" sha256="$(curl -fsSL "$(download_url "$latest").sha256" | cut -f1 -d ' ' | tr -cd 'a-f0-9' | cut -c 1-64)" for variant in "${variants[@]}"; do