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>
This commit is contained in:
Dave Reisner 2011-12-06 23:39:09 -05:00 committed by Dan McGee
parent b75fac5be3
commit 67290441b8
1 changed files with 1 additions and 1 deletions

View File

@ -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.