mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Use CreateTempFile for temporary file creation
This commit is contained in:
parent
e0e56f2cdc
commit
5e5507a1cd
@ -8,7 +8,8 @@ if [ $# -eq 0 ]; then
|
|||||||
else
|
else
|
||||||
FILE=`echo $1 | egrep "^http|https"`
|
FILE=`echo $1 | egrep "^http|https"`
|
||||||
if [ ! "${FILE}" = "" ] ; then
|
if [ ! "${FILE}" = "" ] ; then
|
||||||
TMP_FILE=`mktemp /tmp/audit.XXXXXXXX`
|
CreateTempFile
|
||||||
|
TMP_FILE="${TEMP_FILE}"
|
||||||
Display --indent 2 --text "Downloading URL ${FILE} with wget"
|
Display --indent 2 --text "Downloading URL ${FILE} with wget"
|
||||||
wget -o ${TMP_FILE} ${FILE}
|
wget -o ${TMP_FILE} ${FILE}
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user