diff options
author | 2018-04-25 16:47:52 +0000 | |
---|---|---|
committer | 2018-04-25 16:47:52 +0000 | |
commit | 2df2b91e11b17612d887d4dff2178ad44f390768 (patch) | |
tree | 82ca19ea99cd1050898992b46cd07be6166e1a01 | |
parent | d836895255093df146963b477399a2985620d9ae (diff) | |
parent | df2baf00c1be446e85e892c4788102c890ee9b65 (diff) |
Merge "Fix demo-k8"
-rwxr-xr-x | demo-k8s.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/demo-k8s.sh b/demo-k8s.sh index d5e7a03..de33627 100755 --- a/demo-k8s.sh +++ b/demo-k8s.sh @@ -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) |