Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-08-22 15:11:22 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-08-22 15:11:22 +0300
commita72650252f545cafb5fe76e3138560cb2390c773 (patch)
tree1da5993cfd10aecfd20df68c5e7fb26414bfebda /include/parameters
parentb7641cc16af31f5f061f66c5c3ed9540487768a9 (diff)
When audit target is missing, stop execution
Diffstat (limited to 'include/parameters')
-rw-r--r--include/parameters9
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