Make aurfetch uninstall delete cache regardless if possible

main
Ensar Sarajčić 2022-05-09 16:11:47 +02:00
parent ebdf6352c3
commit f80a2062a7
1 changed files with 2 additions and 2 deletions

View File

@ -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