From f9a941d7e95551574737d6a1b9e3ee0763a8ab08 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 30 Apr 2011 21:17:16 +0200 Subject: [PATCH] fixup posix problems Signed-off-by: Nico Schottelius --- cleanup-latex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cleanup-latex b/cleanup-latex index c87a536..429b5b5 100755 --- a/cleanup-latex +++ b/cleanup-latex @@ -3,6 +3,8 @@ # Nico Schottelius # +set -e + DIR="$1" [ -z "${DIR}" ] && DIR="${PWD}" @@ -14,4 +16,5 @@ if ! [ -d "${DIR}" ]; then exit 1 fi -rm "${DIR}"/*.{aux,nav,out,toc,snm,log,vrb} +cd "${DIR}" +rm -f *.aux *.nav *.out *.toc *.snm *.log *.vrb