updateminiupnpcstrings.sh: mktemp

This commit is contained in:
Thomas Bernard 2021-08-12 23:44:21 +02:00
parent f1f3b6a5fc
commit 177cac1368
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ fi
if [ -n "$2" ] ; then
TEMPLATE_FILE="$2"
fi
TMPFILE=`mktemp -t miniupnpcstrings`
TMPFILE=`mktemp -t miniupnpcstringsXXXXXX`
if [ ! -f "$TMPFILE" ] ; then
echo "mktemp failure"
exit 1
fi
# detecting the OS name and version
OS_NAME=`uname -s`