From 7ec51cdae094f07ad3981b2a434a80749291d90e Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 14 Jul 2016 15:26:46 +0200 Subject: [PATCH] Only use license key when it is defined --- include/profiles | 8 +++++--- 1 file 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