diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-06-24 16:33:42 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-06-24 16:33:42 +0300 |
commit | b0f966ae48591adf07c8261b6881e87571c97cd0 (patch) | |
tree | 1e1423c640ee9c9cbf9e362739febae54ff602bd /include/parameters | |
parent | 6f3c268c57ae196ccfc4f0c4b3f620f20653d642 (diff) |
Check number of arguments for 'audit dockerfile'
Diffstat (limited to 'include/parameters')
-rw-r--r-- | include/parameters | 5 |
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 |