diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-04-08 10:43:49 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-04-08 10:43:49 -0300 |
commit | ebd8317901120abc9deab59532172074aa57d770 (patch) | |
tree | c563b247c3b3026887a91b75be68e4111e99e2bb /chcleanup | |
parent | 203fb2c1f543bfb3caa13a4108a9d9cd386903ae (diff) | |
parent | a0890dedb0ed2ba5c959ddd8cddf52fe4695baa9 (diff) |
Merge branch 'fauno'
Diffstat (limited to 'chcleanup')
-rwxr-xr-x | chcleanup | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,11 @@ #!/bin/bash -[ ! -f ~/cleansystem ] && exit 1 +[ ! -f /etc/libretools.d/cleansystem ] && exit 1 -sudo pacman --noconfirm -Rcs $(comm -23 <(pacman -Qq | sort) <(sort ~/cleansystem)) +packages=($(comm -23 <(pacman -Qq | sort) <(sort /etc/libretools.d/cleansystem))) + +echo "Removing: ${packages[@]}" + +sudo pacman --noconfirm -Rcs ${packages[@]} exit $? |