Enable new sources format on debian

This commit is contained in:
2025-04-24 14:13:43 -04:00
parent 927d2c0c72
commit 4b486f1094

View File

@@ -617,10 +617,9 @@ install_mc_repo() {
debian|ubuntu) debian|ubuntu)
[[ -n $BETAPASS ]] && channel="beta" || channel="latest" [[ -n $BETAPASS ]] && channel="beta" || channel="latest"
local major_version="${VERSION_ID%%.*}" local major_version="${VERSION_ID%%.*}"
local minor_version="${VERSION_ID##*.}"
local keyfile="/usr/share/keyrings/jriver-com-archive-keyring.gpg" local keyfile="/usr/share/keyrings/jriver-com-archive-keyring.gpg"
if [[ $ID == "ubuntu" ]] && if [[ $ID == "ubuntu" && $major_version -ge 24 ]] ||
[[ $major_version -gt 24 || ($major_version -eq 24 && $minor_version -ge 10) ]]; then [[ $ID == "debian" && $major_version -ge 12 ]]; then
if [[ $channel == "beta" ]]; then if [[ $channel == "beta" ]]; then
repo_file="/etc/apt/sources.list.d/jriver-beta.sources" repo_file="/etc/apt/sources.list.d/jriver-beta.sources"
else else