diff options
author | 2021-03-10 14:02:13 +0100 | |
---|---|---|
committer | 2021-09-06 09:01:11 +0200 | |
commit | 42f91fc8f9467f9f7fb9ac7e6349b33964b63127 (patch) | |
tree | 9ea70aca88543948c7247bad17217ab94c296ea4 /kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh | |
parent | 3980a8cbeb63c885b123ac50033e32ed996bb39a (diff) |
[COMMON] Fix ${foo:3[:1]} bashisms
pointed out by checkbashisms
Issue-ID: OOM-264
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ief3b2595a55f0e7a0a2e7ab05857848c99ce42f9
Diffstat (limited to 'kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh')
-rwxr-xr-x | kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh | 2 |
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 |