Make aurfetch uninstall delete cache regardless if possible
parent
ebdf6352c3
commit
f80a2062a7
|
@ -185,10 +185,10 @@ update() {
|
||||||
uninstall() {
|
uninstall() {
|
||||||
if [ ! "$PACKAGE" = "pacman -Qm $PACKAGE" ]; then
|
if [ ! "$PACKAGE" = "pacman -Qm $PACKAGE" ]; then
|
||||||
echo "$PACKAGE is not installed!"
|
echo "$PACKAGE is not installed!"
|
||||||
exit 1
|
else
|
||||||
|
sudo pacman -Rns $PACKAGE
|
||||||
fi
|
fi
|
||||||
echov "Removing package with pacman -Rns $PACKAGE"
|
echov "Removing package with pacman -Rns $PACKAGE"
|
||||||
sudo pacman -Rns $PACKAGE
|
|
||||||
if [ $KEEP_CACHE -eq 0 ]; then
|
if [ $KEEP_CACHE -eq 0 ]; then
|
||||||
echov "Deleting cache - $AUR_INSTALL_HOME/$PACKAGE"
|
echov "Deleting cache - $AUR_INSTALL_HOME/$PACKAGE"
|
||||||
if [ -d "$AUR_INSTALL_HOME/$PACKAGE" ]; then
|
if [ -d "$AUR_INSTALL_HOME/$PACKAGE" ]; then
|
||||||
|
|
Loading…
Reference in New Issue