From 2c35db1c383233da416e9ae1c15e57d9b655235f Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 13 Jan 2014 19:50:41 +0100 Subject: [PATCH] git: less verbose pre-commit-texcheck --- git/pre-commit-texcheck | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5