[COMMON] Fix condition bracket bashisms - step 1 98/118998/13
authorGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 26 Apr 2021 19:46:56 +0000 (21:46 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 17 May 2021 12:35:43 +0000 (14:35 +0200)
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: Ie7ca5b71938fae22c200b7fead418618160fbe19


No differences found