mirror of https://github.com/CISOfy/lynis.git
Only use license key when it is defined
This commit is contained in:
parent
fe53964f0a
commit
7ec51cdae0
|
@ -145,9 +145,11 @@
|
|||
|
||||
# Lynis Enterprise license key
|
||||
license_key | license-key)
|
||||
LICENSE_KEY="${VALUE}"
|
||||
Report "license_key=${LICENSE_KEY}"
|
||||
AddSetting "license-key" "${LICENSE_KEY}" "License key"
|
||||
if [ ! "${VALUE}" = "" ]; then
|
||||
LICENSE_KEY="${VALUE}"
|
||||
Report "license_key=${VALUE}"
|
||||
fi
|
||||
AddSetting "license-key" "${VALUE}" "License key"
|
||||
;;
|
||||
|
||||
# Do (not) log tests if they have an different operating system
|
||||
|
|
Loading…
Reference in New Issue