mirror of https://github.com/CISOfy/lynis.git
Use correct TEMP_FILE variable
This commit is contained in:
parent
41589b14c2
commit
461bb84b62
|
@ -360,12 +360,12 @@
|
|||
################################################################################
|
||||
# Name : CreateTempFile
|
||||
# Description : Creates a temporary file
|
||||
# Returns : TEMPFILE
|
||||
# Returns : TEMP_FILE
|
||||
################################################################################
|
||||
|
||||
CreateTempFile()
|
||||
{
|
||||
TEMPFILE=""
|
||||
TEMP_FILE=""
|
||||
if [ "${OS}" = "AIX" ]; then
|
||||
RANDOMSTRING1=`echo lynis-$(od -N4 -tu /dev/random | awk 'NR==1 {print $2} {}')`
|
||||
TEMP_FILE="/tmp/${RANDOMSTRING1}"
|
||||
|
|
Loading…
Reference in New Issue