summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-01 21:39:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-01 21:39:08 +0000
commit360405730f0cefc0de5b9954d3b2f6f1000f5f38 (patch)
treeb4051701c33950d868fa4c8383df9026e6e81ca5 /libexec
parenta6f1bc05a1fd2eb9b66c1ccc68d3bab5f7f2e651 (diff)
cleanup TDIR in one more case
Diffstat (limited to 'libexec')
-rw-r--r--libexec/makewhatis/makewhatis.sh1
1 files changed, 1 insertions, 0 deletions
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