diff options
-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 |