mirror of https://github.com/CISOfy/lynis.git
Check number of arguments for 'audit dockerfile'
This commit is contained in:
parent
6f3c268c57
commit
b0f966ae48
|
@ -36,12 +36,13 @@
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
case $2 in
|
case $2 in
|
||||||
"dockerfile")
|
"dockerfile")
|
||||||
if [ "$3" = "" ]; then
|
if [ $# = 2 ]; then
|
||||||
echo "${RED}Error: ${WHITE}Missing file name or URL${NORMAL}"
|
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
|
ExitFatal
|
||||||
else
|
else
|
||||||
shift; shift
|
shift; shift
|
||||||
|
CHECK_BINARIES=1
|
||||||
HELPER_PARAMS="$1"
|
HELPER_PARAMS="$1"
|
||||||
HELPER="audit_dockerfile"
|
HELPER="audit_dockerfile"
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue