From 6406ca564a0ba3a6fd32b4be2d9ed0d985c94987 Mon Sep 17 00:00:00 2001 From: bryan Date: Sat, 26 Apr 2025 10:48:14 -0400 Subject: [PATCH] If VERSION_ID is empty, treat as new --- installJRMC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index cc44da0..2fbd54f 100755 --- a/installJRMC +++ b/installJRMC @@ -621,8 +621,8 @@ install_mc_repo() { [[ -n $BETAPASS ]] && channel="beta" || channel="latest" local major_version="${VERSION_ID%%.*}" local keyfile="/usr/share/keyrings/jriver-com-archive-keyring.gpg" - if [[ $ID == "ubuntu" && $major_version -ge 24 ]] || - [[ $ID == "debian" && $major_version -ge 12 ]]; then + if [[ ($ID == "ubuntu" && $major_version -ge 24) || + ($ID == "debian" && (-z $major_version || $major_version -ge 12)) ]]; then if [[ $channel == "beta" ]]; then repo_file="/etc/apt/sources.list.d/jriver-beta.sources" else