Pārlūkot izejas kodu

If VERSION_ID is empty, treat as new

bryan 1 dienu atpakaļ
vecāks
revīzija
6406ca564a
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      installJRMC

+ 2 - 2
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