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-06-24 16:33:42 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-06-24 16:33:42 +0300
commitb0f966ae48591adf07c8261b6881e87571c97cd0 (patch)
tree1e1423c640ee9c9cbf9e362739febae54ff602bd /include/parameters
parent6f3c268c57ae196ccfc4f0c4b3f620f20653d642 (diff)
Check number of arguments for 'audit dockerfile'
Diffstat (limited to 'include/parameters')
-rw-r--r--include/parameters5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/parameters b/include/parameters
index f3845526..53eeecb3 100644
--- a/include/parameters
+++ b/include/parameters
@@ -36,12 +36,13 @@
if [ $# -gt 1 ]; then
case $2 in
"dockerfile")
- if [ "$3" = "" ]; then
+ if [ $# = 2 ]; then
echo "${RED}Error: ${WHITE}Missing file name or URL${NORMAL}"
- echo "Example: $0 audit dockerfile /root/Dockerfile"
+ echo "Example: $0 audit dockerfile /path/to/Dockerfile"
ExitFatal
else
shift; shift
+ CHECK_BINARIES=1
HELPER_PARAMS="$1"
HELPER="audit_dockerfile"
break