mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 08:14:10 +02:00
Check for number of arguments
This commit is contained in:
parent
f498d7bf2c
commit
db5d825701
@ -33,7 +33,7 @@
|
||||
HELPER="audit"
|
||||
SKIP_PLUGINS=1
|
||||
RUN_TESTS=0
|
||||
if [ ! $2 = "" ]; then
|
||||
if [ $# -gt 1 ]; then
|
||||
case $2 in
|
||||
"dockerfile")
|
||||
if [ "$3" = "" ]; then
|
||||
@ -48,6 +48,7 @@
|
||||
fi
|
||||
;;
|
||||
"system")
|
||||
if [ $# -gt 2 ]; then
|
||||
if [ "$3" = "remote" ]; then
|
||||
shift
|
||||
if [ "$3" = "" ]; then
|
||||
@ -77,12 +78,14 @@
|
||||
break
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
CHECK=1
|
||||
CHECK_BINARIES=1
|
||||
HELPER=""
|
||||
SKIP_PLUGINS=0
|
||||
RUN_TESTS=1
|
||||
shift
|
||||
|
||||
;;
|
||||
esac
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user