use mktemp properly ?

-t option to put in /tmp dir
This commit is contained in:
Thomas Bernard 2015-07-16 17:16:52 +02:00
parent 904399cd62
commit 6db99a1a40
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
# The script was tested and works with ksh, bash
# it should now also run with dash
TMPD=`mktemp -d miniwgetXXXXXXXXXX`
TMPD=`mktemp -t -d miniwgetXXXXXXXXXX`
HTTPSERVEROUT="${TMPD}/httpserverout"
EXPECTEDFILE="${TMPD}/expectedfile"
DOWNLOADEDFILE="${TMPD}/downloadedfile"

View File

@ -1,5 +1,5 @@
#! /bin/sh
# $Id: genconfig.sh,v 1.78 2014/12/10 09:34:42 nanard Exp $
# $Id: genconfig.sh,v 1.81 2015/07/16 15:00:21 nanard Exp $
# miniupnp daemon
# http://miniupnp.free.fr or http://miniupnp.tuxfamily.org/
# (c) 2006-2015 Thomas Bernard
@ -36,7 +36,7 @@ done
RM="rm -f"
MV="mv"
CONFIGFILE="config.h.tmp"
CONFIGFILE=`mktemp tmp.config.h.XXXXXXXXXX`
CONFIGFILE_FINAL="config.h"
CONFIGMACRO="CONFIG_H_INCLUDED"