summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-10-01 21:39:07 +0000
committerderaadt <deraadt@openbsd.org>1996-10-01 21:39:07 +0000
commit9ecec21a1d2d1cadbf5891726f52846059aed145 (patch)
tree245e42813b9df52f9617c9354038ed5bab57a460
parentMake more like sys/conf/GENERIC (diff)
downloadwireguard-openbsd-9ecec21a1d2d1cadbf5891726f52846059aed145.tar.xz
wireguard-openbsd-9ecec21a1d2d1cadbf5891726f52846059aed145.zip
cleanup TDIR in one more case
-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