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 # 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