aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2018-04-23 17:24:35 -0500
committerBrian Freeman <bf1936@att.com>2018-04-23 17:24:45 -0500
commit270663019ce2150a2a5dd3190e9e81ef76faba5c (patch)
tree2eb13b6c63ef7240025517c9fb5cde5dfae46417
parent8f72e1e58c389603efa0aa2ae178e1cf3218a2b7 (diff)
Fix demo-k8
Issue-ID: OOM-794 Change-Id: I07674d726496f7d30350033b4a3ad0ad337f4b28 Signed-off-by: Brian Freeman <bf1936@att.com>
-rwxr-xr-xkubernetes/robot/demo-k8s.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/kubernetes/robot/demo-k8s.sh b/kubernetes/robot/demo-k8s.sh
index d5e7a0384d..de3362740e 100755
--- a/kubernetes/robot/demo-k8s.sh
+++ b/kubernetes/robot/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)