summaryrefslogtreecommitdiffstats
path: root/kubernetes/contrib/metallb-loadbalancer-inst
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2021-05-26 06:56:47 +0000
committerGerrit Code Review <gerrit@onap.org>2021-05-26 06:56:47 +0000
commit77b740f2c94facef63eafcde23666c2133d2e5da (patch)
treea3602f406219192021097a758c2aac6b800f9431 /kubernetes/contrib/metallb-loadbalancer-inst
parentf4438980a2e002fdfb684ba30870f2349e38a4c3 (diff)
parent7abd8c33af95f94bdbf21f372b372373c294e9f7 (diff)
Merge "[COMMON] Fix condition bracket bashisms - step 2"
Diffstat (limited to 'kubernetes/contrib/metallb-loadbalancer-inst')
-rwxr-xr-xkubernetes/contrib/metallb-loadbalancer-inst/install-metallb-on-cluster.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/kubernetes/contrib/metallb-loadbalancer-inst/install-metallb-on-cluster.sh b/kubernetes/contrib/metallb-loadbalancer-inst/install-metallb-on-cluster.sh
index 44fe79a0c6..bf2bc121a7 100755
--- a/kubernetes/contrib/metallb-loadbalancer-inst/install-metallb-on-cluster.sh
+++ b/kubernetes/contrib/metallb-loadbalancer-inst/install-metallb-on-cluster.sh
@@ -76,9 +76,11 @@ manual_configuration() {
generate_config_map $@
}
-if [[ $# -eq 1 ]] && [[ $1 = "-h" || $1 = "--help" ]]; then
+if [ $# -eq 1 ] && [ "$1" = "-h" ]; then
usage
-elif [[ $# -eq 0 ]]; then
+if [ $# -eq 1 ] && [ "$1" = "--help" ]; then
+ usage
+elif [ $# -eq 0 ]; then
automatic_configuration
else
manual_configuration $@