diff options
author | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-05-08 01:58:02 -0500 |
---|---|---|
committer | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-05-08 01:58:02 -0500 |
commit | 3dcf773de928a0a587f0409d2bd1d7ecad80b549 (patch) | |
tree | bf66d492479bb9f454b9700b58fc53c114ae4e7d /chcleanup | |
parent | e13b2d4ae996c164b8082bfa18a7351ddb4467d7 (diff) | |
parent | 112b6427bf299b9db8fc34e5b771fecf1958db07 (diff) |
Merge branch 'master' of gitpar:libretools
Conflicts:
toru-utils
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 $? |