diff options
author | Brian Freeman <bf1936@att.com> | 2018-04-23 17:24:35 -0500 |
---|---|---|
committer | Brian Freeman <bf1936@att.com> | 2018-04-23 17:24:45 -0500 |
commit | df2baf00c1be446e85e892c4788102c890ee9b65 (patch) | |
tree | 58b4d5cd0841495d8ff52879631f74fa29a841c4 | |
parent | f5e3ca6d4f2b89e37cadb8273bf7634ba097744c (diff) |
Fix demo-k8
Issue-ID: OOM-794
Change-Id: I07674d726496f7d30350033b4a3ad0ad337f4b28
Signed-off-by: Brian Freeman <bf1936@att.com>
-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) |