mirror of https://github.com/CISOfy/lynis.git
Use CreateTempFile for temporary file creation
This commit is contained in:
parent
e0e56f2cdc
commit
5e5507a1cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue