浏览代码

Use extended regex for webscrape

bryan 4 天之前
父节点
当前提交
74e58560f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -445,7 +445,7 @@ get_latest_mc_version() {
 		EOF
     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 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+  [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ -n $iadiusiuns ]]; then
     mc_version_source="containerized package manager"
     execute buildah rm "$cnt"
   # Fallback to webscrape