diff --git a/installJRMC b/installJRMC index 3383f40..cc44da0 100755 --- a/installJRMC +++ b/installJRMC @@ -422,7 +422,7 @@ get_latest_mc_version() { # Containerized package manager elif create_mc_apt_container && MC_VERSION=$(sudo buildah run "$CNT" -- apt-cache policy "mediacenter${USER_MC_MVERSION:-${MC_VERSION%%.*}}" | awk '/Candidate:/ {sub(/-.*/, "", $2); print $2}' | sort -V | tail -n1) && - # execute sudo buildah rm "$CNT" && + execute sudo buildah rm "$CNT" && [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then mc_version_source="containerized package manager" # Fallback to webscrape