summaryrefslogtreecommitdiffstats
path: root/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-09-07 07:06:11 +0000
committerGerrit Code Review <gerrit@onap.org>2021-09-07 07:06:11 +0000
commit0b7eb9ac71bf40746566b0dd48ddfca56b3dc2aa (patch)
tree8f1d36e2e6b68e62edf44e35e3eb5c3b2352d87a /kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
parent970e502e6e61c9bdc9c4bae9ef4e7e1aaf821360 (diff)
parent42f91fc8f9467f9f7fb9ac7e6349b33964b63127 (diff)
Merge "[COMMON] Fix ${foo:3[:1]} bashisms"
Diffstat (limited to 'kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh')
-rwxr-xr-xkubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh b/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
index 0cd46167e4..cbcbf7a8bf 100755
--- a/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
+++ b/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
@@ -53,7 +53,7 @@ fi
# If the user is trying to run Consul directly with some arguments, then
# pass them to Consul.
-if [ "${1:0:1}" = '-' ]; then
+if echo "$1" | grep '^-' >/dev/null; then
set -- consul "$@"
fi