projects
/
shutils.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vim: update
[shutils.git]
/
git
/
pre-commit-texcheck
diff --git
a/git/pre-commit-texcheck
b/git/pre-commit-texcheck
index 284849f36516ebdb9f76573a1630a56baa61b313..8d47a5ebe3ef566e066cdded54f4914960618a82 100755
(executable)
--- a/
git/pre-commit-texcheck
+++ b/
git/pre-commit-texcheck
@@
-2,12
+2,14
@@
set -e
-[ "$#"
>
"0" ] && cd "$1"
+[ "$#"
-gt
"0" ] && cd "$1"
tmpdir=$(mktemp -d)
cleanup()
{
- rm -r "$tmpdir"
+ if [ -n "$tmpdir" ]; then
+ rm -r "$tmpdir"
+ fi
}
for f in $(find -name "*.tex"); do