[COMMON] Fix condition bracket bashisms - step 2 14/120914/4
authorGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 26 Apr 2021 19:48:38 +0000 (21:48 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 17 May 2021 12:35:43 +0000 (14:35 +0200)
commit7abd8c33af95f94bdbf21f372b372373c294e9f7
treea42930164cc169d2371434d33535ead6e6c29f03
parentba6e50fd66d06231ff96f9a9c9a4b25b91fa5623
[COMMON] Fix condition bracket bashisms - step 2

pointed out by checkbashisms

$ mycmd=$(tox -e checkbashisms
| grep '(\[\[ foo \]\] should be \[ foo \])'
| sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i '\2s/\\\[\\\[\\\(
[^]]*\\\)\\\]\\\]/[\\\1]/g' \1;@")

$ eval $mycmd

plus fix manually quoting hells induced and bash specific regex
and multi-conditions

Issue-ID: OOM-2643
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ia9626256b5efc837ba12b25d351c8d8a0ba75fb4
kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh
kubernetes/contrib/metallb-loadbalancer-inst/install-metallb-on-cluster.sh
kubernetes/contrib/tools/rke/rke_setup.sh
kubernetes/portal/docker/init/mariadb-client/db_migrate.sh