diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-14 16:26:46 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-14 16:26:46 +0300 |
commit | 7ec51cdae094f07ad3981b2a434a80749291d90e (patch) | |
tree | f2d744592885cc8f7aaf83171fe03e8e9d9a708e | |
parent | fe53964f0a6b8981147475bf01087ac8e1c0297c (diff) |
Only use license key when it is defined
-rw-r--r-- | include/profiles | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/profiles b/include/profiles index be18781d..5130397b 100644 --- a/include/profiles +++ b/include/profiles @@ -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 |