Explorar el Código

Pull latest --mcversion from repo

bryan hace 4 días
padre
commit
afb12e3c19
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -430,7 +430,7 @@ get_latest_mc_version() {
 			Architectures: amd64,armhf,arm64
 		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=$(buildah run "$cnt" -- apt-cache policy "mediacenter$MC_MVERSION" | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null &&
   [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
     mc_version_source="containerized package manager"
     execute buildah rm "$cnt"