Use CreateTempFile for temporary file creation

This commit is contained in:
mboelen 2016-01-11 01:30:06 +01:00
parent e0e56f2cdc
commit 5e5507a1cd
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ if [ $# -eq 0 ]; then
else
FILE=`echo $1 | egrep "^http|https"`
if [ ! "${FILE}" = "" ] ; then
TMP_FILE=`mktemp /tmp/audit.XXXXXXXX`
CreateTempFile
TMP_FILE="${TEMP_FILE}"
Display --indent 2 --text "Downloading URL ${FILE} with wget"
wget -o ${TMP_FILE} ${FILE}
if [ $? -gt 0 ]; then