瀏覽代碼

Only match host repo on MC31+

bryan 3 天之前
父節點
當前提交
e17948a331
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -383,7 +383,7 @@ init() {
 
   # Repo selection
   # Match repo to the host on MC31+ unless overriden by user
-  if [[ $ID =~ debian|ubuntu && "${USER_MC_MVERSION:-${MC_VERSION%%.*}}" -lt 31 ]]; then
+  if [[ $ID =~ debian|ubuntu && "${USER_MC_MVERSION:-${MC_VERSION%%.*}}" -ge 31 ]]; then
     MC_REPO=${UBUNTU_CODENAME:-${VERSION_CODENAME:-$MC_REPO}}
   fi
   MC_REPO="${USER_MC_REPO:-$MC_REPO}" # allow user override