[COMMON] Fix bashisms in import-custom-cert 26/123926/6
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 7 Sep 2021 14:09:54 +0000 (16:09 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Tue, 7 Sep 2021 14:32:25 +0000 (16:32 +0200)
commit639768edbe0fbeb61c0aac0a74510b663f33a9fd
tree17c87c2c123ca9420def2e8a34e721da03454c2a
parenta8f89adf23312cd9207f01ebdace6ea99a9e35d7
[COMMON] Fix bashisms in import-custom-cert

Bashisms of type (should be 'b = a') were all fixed previously
but a new one was reintroduced during the fixes of other types.

Also commit f79b6676cfdc380e004f184a21bb969b2824c06e moved
import-custom-cert shebang from bash to sh but substring syntaxes
similar to ${f: -4} and only supported by bash were not migrated.

Let's fix that alltogether
before enforcing the checkbashisms tox profile.

Issue-ID: OOM-2643
Issue-ID: POLICY-3232
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ie9b5ac1c2edd9ddf3574f09c77ca8734f2311d1d
kubernetes/common/cert-wrapper/resources/import-custom-certs.sh