Check for number of arguments

This commit is contained in:
Michael Boelen 2016-07-28 11:10:59 +02:00
parent f498d7bf2c
commit db5d825701

View File

@ -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