summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-12-06 23:39:09 -0500
committerDan McGee <dan@archlinux.org>2011-12-12 12:52:40 -0600
commit67290441b80fa813a472767353095425c78805af (patch)
treeb325e1007b7dc1ed7ae2bdccd661035e05e54d66 /contrib
parentb75fac5be31d6056e78fd29a0548cc3e6275a1b8 (diff)
downloadpacman-67290441b80fa813a472767353095425c78805af.tar.xz
contrib/paccache: silence possible output from cd
If CDPATH is set, this could possibly write to stdout. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/paccache.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/paccache.in b/contrib/paccache.in
index eae547dc..a9e5bfbc 100755
--- a/contrib/paccache.in
+++ b/contrib/paccache.in
@@ -261,7 +261,7 @@ if (( move || delete )); then
fi
# unlikely that this will fail, but better make sure
-cd "$cachedir" || die "failed to chdir to \`%s'" "$cachedir"
+cd "$cachedir" >/dev/null || die "failed to chdir to \`%s'" "$cachedir"
# note that these results are returned in an arbitrary order from awk, but
# they'll be resorted (in summarize) iff we have a verbosity level set.