Only use license key when it is defined

This commit is contained in:
Michael Boelen 2016-07-14 15:26:46 +02:00
parent fe53964f0a
commit 7ec51cdae0
1 changed files with 5 additions and 3 deletions

View File

@ -145,9 +145,11 @@
# Lynis Enterprise license key
license_key | license-key)
if [ ! "${VALUE}" = "" ]; then
LICENSE_KEY="${VALUE}"
Report "license_key=${LICENSE_KEY}"
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