From a72650252f545cafb5fe76e3138560cb2390c773 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 22 Aug 2019 14:11:22 +0200 Subject: [PATCH] When audit target is missing, stop execution --- include/parameters | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/parameters b/include/parameters index 836a6aa7..6309481d 100644 --- a/include/parameters +++ b/include/parameters @@ -98,7 +98,14 @@ SKIP_PLUGINS=0 RUN_TESTS=1 shift - + ;; + *) + echo "${RED}Error: ${WHITE}Need a target to audit${NORMAL}" + echo " " + echo "Examples:" + echo "lynis audit dockerfile" + echo "lynis audit system" + ExitFatal ;; esac else