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
|
# Lynis Enterprise license key
|
||||||
license_key | license-key)
|
license_key | license-key)
|
||||||
LICENSE_KEY="${VALUE}"
|
if [ ! "${VALUE}" = "" ]; then
|
||||||
Report "license_key=${LICENSE_KEY}"
|
LICENSE_KEY="${VALUE}"
|
||||||
AddSetting "license-key" "${LICENSE_KEY}" "License key"
|
Report "license_key=${VALUE}"
|
||||||
|
fi
|
||||||
|
AddSetting "license-key" "${VALUE}" "License key"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Do (not) log tests if they have an different operating system
|
# Do (not) log tests if they have an different operating system
|
||||||
|
|
Loading…
Reference in New Issue