Use extended regex for webscrape

This commit is contained in:
2025-04-24 00:14:31 -04:00
parent d5acdadd00
commit 74e58560f5

View File

@@ -445,7 +445,7 @@ get_latest_mc_version() {
EOF EOF
apt update --allow-insecure-repositories &>/dev/null' && apt update --allow-insecure-repositories &>/dev/null' &&
MC_VERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null && MC_VERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null &&
[[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ -n $iadiusiuns ]]; then
mc_version_source="containerized package manager" mc_version_source="containerized package manager"
execute buildah rm "$cnt" execute buildah rm "$cnt"
# Fallback to webscrape # Fallback to webscrape