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" HELPER="audit"
SKIP_PLUGINS=1 SKIP_PLUGINS=1
RUN_TESTS=0 RUN_TESTS=0
if [ ! $2 = "" ]; then if [ $# -gt 1 ]; then
case $2 in case $2 in
"dockerfile") "dockerfile")
if [ "$3" = "" ]; then if [ "$3" = "" ]; then
@ -48,6 +48,7 @@
fi fi
;; ;;
"system") "system")
if [ $# -gt 2 ]; then
if [ "$3" = "remote" ]; then if [ "$3" = "remote" ]; then
shift shift
if [ "$3" = "" ]; then if [ "$3" = "" ]; then
@ -77,12 +78,14 @@
break break
fi fi
fi fi
fi
CHECK=1 CHECK=1
CHECK_BINARIES=1 CHECK_BINARIES=1
HELPER="" HELPER=""
SKIP_PLUGINS=0 SKIP_PLUGINS=0
RUN_TESTS=1 RUN_TESTS=1
shift shift
;; ;;
esac esac
else else