From 3c250944952cf9ab622c3f015af300ce640ce0e9 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Thu, 17 Aug 2017 19:56:36 +0100 Subject: [PATCH] No need to declare `PKG_MANAGER`, as it's already declared in basic-install Signed-off-by: Adam Warner --- automated install/uninstall.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/automated install/uninstall.sh b/automated install/uninstall.sh index f2c42f24..aee0869a 100755 --- a/automated install/uninstall.sh +++ b/automated install/uninstall.sh @@ -57,11 +57,6 @@ fi # Compatability if [ -x "$(command -v rpm)" ]; then # Fedora Family - if [ -x "$(command -v dnf)" ]; then - PKG_MANAGER="dnf" - else - PKG_MANAGER="yum" - fi PKG_REMOVE="${PKG_MANAGER} remove -y" package_check() { rpm -qa | grep ^$1- > /dev/null @@ -71,7 +66,6 @@ if [ -x "$(command -v rpm)" ]; then } elif [ -x "$(command -v apt-get)" ]; then # Debian Family - PKG_MANAGER="apt-get" PKG_REMOVE="${PKG_MANAGER} -y remove --purge" package_check() { dpkg-query -W -f='${Status}' "$1" 2>/dev/null | grep -c "ok installed"