summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchcleanup6
1 files changed, 5 insertions, 1 deletions
diff --git a/chcleanup b/chcleanup
index a893320..d1c71c7 100755
--- a/chcleanup
+++ b/chcleanup
@@ -2,6 +2,10 @@
[ ! -f ~/cleansystem ] && exit 1
-sudo pacman --noconfirm -Rcs $(comm -23 <(pacman -Qq | sort) <(sort /etc/libretools.d/cleansystem))
+packages=($(comm -23 <(pacman -Qq | sort) <(sort /etc/libretools.d/cleansystem)))
+
+echo "Removing: ${packages[@]}"
+
+sudo pacman --noconfirm -Rcs ${packages[@]}
exit $?