summaryrefslogtreecommitdiff
path: root/chcleanup
diff options
context:
space:
mode:
authorJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-05-08 01:58:02 -0500
committerJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-05-08 01:58:02 -0500
commit3dcf773de928a0a587f0409d2bd1d7ecad80b549 (patch)
treebf66d492479bb9f454b9700b58fc53c114ae4e7d /chcleanup
parente13b2d4ae996c164b8082bfa18a7351ddb4467d7 (diff)
parent112b6427bf299b9db8fc34e5b771fecf1958db07 (diff)
Merge branch 'master' of gitpar:libretools
Conflicts: toru-utils
Diffstat (limited to 'chcleanup')
-rwxr-xr-xchcleanup8
1 files changed, 6 insertions, 2 deletions
diff --git a/chcleanup b/chcleanup
index 83c9f3f..7074b84 100755
--- a/chcleanup
+++ b/chcleanup
@@ -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 $?