From a1855c87f58a13a0a8436dc5ce619bbb746af5b6 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 24 Apr 2025 22:25:31 -0400 Subject: [PATCH] Try multiple suites --- installJRMC | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index 9df0f7f..369f42d 100755 --- a/installJRMC +++ b/installJRMC @@ -349,7 +349,6 @@ init() { PKG_INSTALL=(sudo apt-get -f install --install-recommends -y -q0) PKG_REMOVE=(sudo apt-get remove --auto-remove -y -q0) PKG_UPDATE=(sudo apt-get update -y -q0) - [[ -n $USER_MC_REPO ]] && PKG_INSTALL+=(-t "$USER_MC_REPO") PKG_QUERY=(dpkg -s) PKG_INSTALL_LOCAL() { install_mc_deb "$@"; } ;; @@ -642,7 +641,7 @@ install_mc_repo() { Types: deb URIs: https://dist.jriver.com/$channel/mediacenter/ Signed-By: $keyfile - Suites: focal jammy noble oracular bullseye bookworm trixie + Suites: $MC_REPO trixie bookworm bullseye oracular noble jammy focal Components: main Architectures: amd64 i386 armhf arm64 EOF @@ -997,7 +996,7 @@ install_mc_deb() { err "Local MC DEB installation failed" ((remove_jammy)) && { echo "Removing jammy repo"; execute sudo rm -f "$repo_file"; } if ask_ok "Remove source DEB and retry"; then - execute rm -f "$MC_DEB" "$temp_deb" + execute sudo rm -f "$MC_DEB" "$temp_deb" exec "$SCRIPT_PATH" "$@" "--no-update" fi fi