summaryrefslogtreecommitdiff
path: root/chcleanup
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-24 18:50:44 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-24 18:50:44 -0300
commit2f7e3155e766e552f53dbadab18f4e2aff824cd4 (patch)
treebfbb0ed11002990eaf322b9e6bf5b6d375d5b867 /chcleanup
parent7506b06cb81951a4705908f6bfe93f81d50667a7 (diff)
Informe removed packages
Diffstat (limited to 'chcleanup')
-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 $?