From f80a2062a7eeeb1b659285eb1fef15d5e4bd3cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 9 May 2022 16:11:47 +0200 Subject: [PATCH] Make aurfetch uninstall delete cache regardless if possible --- symlinks/bin/aurfetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/symlinks/bin/aurfetch b/symlinks/bin/aurfetch index 5f935e7..1de4752 100755 --- a/symlinks/bin/aurfetch +++ b/symlinks/bin/aurfetch @@ -185,10 +185,10 @@ update() { uninstall() { if [ ! "$PACKAGE" = "pacman -Qm $PACKAGE" ]; then echo "$PACKAGE is not installed!" - exit 1 + else + sudo pacman -Rns $PACKAGE fi echov "Removing package with pacman -Rns $PACKAGE" - sudo pacman -Rns $PACKAGE if [ $KEEP_CACHE -eq 0 ]; then echov "Deleting cache - $AUR_INSTALL_HOME/$PACKAGE" if [ -d "$AUR_INSTALL_HOME/$PACKAGE" ]; then