From 3f21dae6e18cc6bc625bcbc454f3ac5463f56222 Mon Sep 17 00:00:00 2001 From: bryan Date: Sun, 5 Dec 2021 13:44:59 -0500 Subject: [PATCH] Disallow repo install on SUSE for now --- installJRMC | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index a68a211..fa67e48 100755 --- a/installJRMC +++ b/installJRMC @@ -140,8 +140,6 @@ init() { pkg_query(){ ifSudo dpkg -s "$@"; } firewall_cmd(){ ifSudo ufw "$@"; } elif [[ "$ID" =~ ^opensuse.* ]]; then - echo "SUSE support is experimental!" - echo "Use --install rpm to build and install MC for SUSE." pkg_install(){ ifSudo zypper --non-interactive -q install --force --no-confirm "$@"; } pkg_remove(){ ifSudo zypper --non-interactive -q remove --clean-deps "$@"; } pkg_update(){ ifSudo zypper --non-interactive -q refresh jriver; } @@ -1339,6 +1337,11 @@ main() { # Install MC using package manager if [[ -v _install && "$_install" == "repo" ]]; then + if [[ "$ID" =~ ^opensuse.*$ ]]; then + echo "A SUSE repository is not yet available." + echo "Use --install rpm to build and install a SUSE RPM instead." + exit 1 + fi if installMCFromRepo; then echo "JRiver Media Center installed successfully" else