summaryrefslogtreecommitdiff
path: root/clean-pacman
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-22 04:42:40 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-22 04:42:40 -0300
commit8f76df557d92ef978743097a9e88a15ffdee1b38 (patch)
treed18aa67087b9bd9e4cacc2d57ff1d4f9368a3951 /clean-pacman
parentbdc72cb35e90e0d2e795a928de658c9d71b0feac (diff)
Bogus output was captured
Diffstat (limited to 'clean-pacman')
-rwxr-xr-xclean-pacman4
1 files changed, 2 insertions, 2 deletions
diff --git a/clean-pacman b/clean-pacman
index 6b34874..9ef4a46 100755
--- a/clean-pacman
+++ b/clean-pacman
@@ -30,11 +30,11 @@ case $cmd in
-T)
# Use sudo because $0 is run as normal user
# TODO -Sy only once
- sudo pacman -b "${BD:-/var/lib/libretools/clean}" -Sy
+ sudo pacman -b "${BD:-/var/lib/libretools/clean}" -Sy >/dev/null 2>&1
sudo pacman -b "${BD:-/var/lib/libretools/clean}" \
-Sp \
--print-format "%n" \
- ${args[@]} >>${cleanup_log}
+ ${args[@]} >>${cleanup_log} 2>/dev/null
;;
# Diff against previously installed packages and remove the unneeded ones