From: Stefan Huber Date: Mon, 13 Jan 2014 18:50:41 +0000 (+0100) Subject: git: less verbose pre-commit-texcheck X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=2c35db1c383233da416e9ae1c15e57d9b655235f;p=shutils.git git: less verbose pre-commit-texcheck --- diff --git a/git/pre-commit-texcheck b/git/pre-commit-texcheck index dae2418..284849f 100755 --- a/git/pre-commit-texcheck +++ b/git/pre-commit-texcheck @@ -14,7 +14,7 @@ for f in $(find -name "*.tex"); do # Only main tex files are interesting grep -q "\documentclass" "$f" || continue - pushd . + pushd . > /dev/null cd $(dirname $f) if ! pdflatex -output-directory "$tmpdir" $(basename $f) < /dev/null > /dev/null; then @@ -23,7 +23,7 @@ for f in $(find -name "*.tex"); do cleanup exit 1 fi - popd + popd > /dev/null done cleanup