mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Use CreateTempFile for temporary file creation
This commit is contained in:
parent
e0e56f2cdc
commit
5e5507a1cd
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue