diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2008-12-24 00:15:25 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2008-12-24 00:15:25 +0000 |
commit | 471332fb4933a690fa2cdfd8dc388b681a41b9bc (patch) | |
tree | 13245324394347fca53ec90a0c5dedecc4ff9d71 /distrib | |
parent | da801fe51c9e373d13810340b842f438b53974c2 (diff) |
clean /tmp propery like other scripts; prodded by deraadt@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/sets/maketars | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/sets/maketars b/distrib/sets/maketars index 2139e9923..73402879d 100644 --- a/distrib/sets/maketars +++ b/distrib/sets/maketars @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: maketars,v 1.3 2007/08/05 22:26:02 todd Exp $ +# $OpenBSD: maketars,v 1.4 2008/12/24 00:15:24 todd Exp $ # xy RELEASE=$1 @@ -26,8 +26,8 @@ pwd=`pwd` listsdir=`pwd`/lists tardir=$RELEASEDIR -TMPDIR=`mktemp -d /tmp/_maketarsx.XXXXXXXXXX` -trap 'rm -f $TMP1 $TMP2; rmdir $TMPDIR; exit 1' 1 15 +TMPDIR=`mktemp -d /tmp/_maketarsx.XXXXXXXXXX` || exit 1 +trap 'rm -f $TMP1 $TMP2; rmdir $TMPDIR' 0 1 15 TMP1=$TMPDIR/one TMP2=$TMPDIR/two |