Merge "Fix demo-k8"
authorMike Elliott <mike.elliott@amdocs.com>
Wed, 25 Apr 2018 16:47:52 +0000 (16:47 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 25 Apr 2018 16:47:52 +0000 (16:47 +0000)
kubernetes/robot/demo-k8s.sh

index d5e7a03..de33627 100755 (executable)
@@ -36,7 +36,11 @@ function usage
 }
 
 # Set the defaults
-if [ $# -le 2 ];then
+
+echo "Number of parameters:" 
+echo $#
+
+if [ $# -lt 2 ];then
        usage
        exit
 fi
@@ -47,9 +51,11 @@ shift
 ##
 ## if more than 1 tag is supplied, the must be provided with -i or -e
 ##
-while [ $# -gt 1 ]
+while [ $# -gt 0 ]
 do
-       key="$2"
+       key="$1"
+        echo "KEY:"
+        echo $key
 
        case $key in
        init_robot)