From 387c5db385ef30c2ad4b7e2ec40825ca41a93fba Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 24 Apr 2025 12:53:25 -0400 Subject: [PATCH] Only match host repo on MC31+ --- installJRMC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 55b0932..5a43e14 100755 --- a/installJRMC +++ b/installJRMC @@ -382,8 +382,8 @@ init() { CREATEREPO_TARGET="${CREATEREPO_TARGET:-$ID}" # Repo selection - # Match newer MC repos to the host unless overriden by user - if [[ $ID =~ debian|ubuntu && $USER_MC_MVERSION -ge 31 ]]; then + # Match repo to the host on MC31+ unless overriden by user + if [[ $ID =~ debian|ubuntu && "${USER_MC_MVERSION:-${MC_VERSION%%.*}}" -lt 31 ]]; then MC_REPO=${UBUNTU_CODENAME:-${VERSION_CODENAME:-$MC_REPO}} fi MC_REPO="${USER_MC_REPO:-$MC_REPO}" # allow user override