aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/appc
diff options
context:
space:
mode:
authorGuillaume Lambert <guillaume.lambert@orange.com>2021-03-11 15:53:15 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2021-05-11 17:50:14 +0000
commit3ec69ace22277da78ba3de681078478e7f036bd0 (patch)
tree9807e827eb92aa9d0830293dd5b324acbf8960d7 /kubernetes/appc
parentfd9c202816c479e98edde2f3f92625825141013e (diff)
[COMMON] Fix arithmetic loop bashisms
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I85fd7d9beca75dc729de247fa67a20b801748c19
Diffstat (limited to 'kubernetes/appc')
-rwxr-xr-xkubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh
index 85f5aac246..717ea6679c 100755
--- a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh
+++ b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh
@@ -44,7 +44,7 @@ enable_odl_cluster () {
node_index=($(echo ${hm} | awk -F"-" '{print $NF}'))
node_list="${node}-0.{{ .Values.service.name }}-cluster.{{.Release.Namespace}}";
- for ((i=1;i<${APPC_REPLICAS};i++));
+ for i in $(seq 1 $((${APPC_REPLICAS}-1)));
do
node_list="${node_list} ${node}-$i.{{ .Values.service.name }}-cluster.{{.Release.Namespace}}"
done