From 360405730f0cefc0de5b9954d3b2f6f1000f5f38 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 1 Oct 1996 21:39:08 +0000 Subject: cleanup TDIR in one more case --- libexec/makewhatis/makewhatis.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'libexec/makewhatis/makewhatis.sh') diff --git a/libexec/makewhatis/makewhatis.sh b/libexec/makewhatis/makewhatis.sh index 8c06ce94a9e..c18570936c1 100644 --- a/libexec/makewhatis/makewhatis.sh +++ b/libexec/makewhatis/makewhatis.sh @@ -21,6 +21,7 @@ trap "rm -rf $TDIR; exit 1" 1 2 15 MANDIR=${1-/usr/share/man} if test ! -d "$MANDIR"; then echo "makewhatis: $MANDIR: not a directory" + rm -rf $TDIR exit 1 fi -- cgit v1.2.3