diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-08-22 15:11:22 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-08-22 15:11:22 +0300 |
commit | a72650252f545cafb5fe76e3138560cb2390c773 (patch) | |
tree | 1da5993cfd10aecfd20df68c5e7fb26414bfebda /include/parameters | |
parent | b7641cc16af31f5f061f66c5c3ed9540487768a9 (diff) |
When audit target is missing, stop execution
Diffstat (limited to 'include/parameters')
-rw-r--r-- | include/parameters | 9 |
1 files changed, 8 insertions, 1 deletions
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 |