From 5e5507a1cdd27a481371c2b58ff2b2c40a357668 Mon Sep 17 00:00:00 2001 From: mboelen Date: Mon, 11 Jan 2016 01:30:06 +0100 Subject: [PATCH] Use CreateTempFile for temporary file creation --- include/helper_audit_dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/helper_audit_dockerfile b/include/helper_audit_dockerfile index 13174e40..31390c25 100644 --- a/include/helper_audit_dockerfile +++ b/include/helper_audit_dockerfile @@ -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