From 8211318f0c2ab8db5987e64f65905626b35f60f4 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 6 Jan 2022 15:59:00 -0500 Subject: [PATCH] Fix uninstall error on SUSE --- installJRMC | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installJRMC b/installJRMC index ea56a86..25ce885 100755 --- a/installJRMC +++ b/installJRMC @@ -143,7 +143,7 @@ init() { firewall_cmd(){ ifSudo ufw "$@"; } elif [[ "$ID" =~ ^opensuse.* ]]; then pkg_install(){ ifSudo zypper --non-interactive -q install --force --no-confirm "$@"; } - pkg_remove(){ ifSudo zypper --non-interactive remove --clean-deps "$@"; } + pkg_remove(){ ifSudo zypper --non-interactive -q remove --clean-deps "$@"; } pkg_update(){ ifSudo zypper --non-interactive -q refresh jriver; } pkg_query(){ ifSudo rpm -q "$@"; } firewall_cmd(){ ifSudo firewall-cmd "$@"; } @@ -1436,10 +1436,10 @@ uninstall() { fi if debug; then - debug "pkg_remove -q $_mcpkg" - pkg_remove "-q" "$_mcpkg" + debug "pkg_remove $_mcpkg" + pkg_remove "$_mcpkg" else - pkg_remove "-q" "$_mcpkg" > /dev/null 2>&1 + pkg_remove "$_mcpkg" > /dev/null 2>&1 fi echo "JRiver Media Center has been completely uninstalled."