From 42f91fc8f9467f9f7fb9ac7e6349b33964b63127 Mon Sep 17 00:00:00 2001 From: Guillaume Lambert Date: Wed, 10 Mar 2021 14:02:13 +0100 Subject: [COMMON] Fix ${foo:3[:1]} bashisms pointed out by checkbashisms Issue-ID: OOM-264 Signed-off-by: Guillaume Lambert Change-Id: Ief3b2595a55f0e7a0a2e7ab05857848c99ce42f9 --- kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kubernetes/msb/components') 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 -- cgit 1.2.3-korg