[COMMON] Get rid of "x-hack" in shell scripts 05/121005/3
authorGuillaume Lambert <guillaume.lambert@orange.com>
Thu, 29 Apr 2021 12:12:24 +0000 (14:12 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 2 Jun 2021 07:52:26 +0000 (07:52 +0000)
commitcf0be4349201f9f2e64b3b1dc4ebe8ae6def9588
tree5ca34124aae70b4323c31995fec26b3c5e2ae573
parent84b962398213641e656e8d1750b83f480f531563
[COMMON] Get rid of "x-hack" in shell scripts

$ find . -name *.sh -print |xargs grep -l '"x'| xargs sed -i 's/"x/"/g'

The "x-hack" is a historical workaround for some old UNIX shells with
buggy condition comparison code. None of them is still used today.
Recent POSIX specifications now guarantee it should work without it
in any modern POSIX shell.

More details at
https://www.vidarholen.net/contents/blog/?p=1035
https://github.com/koalaman/shellcheck/wiki/SC2268

Issue-ID: OOM-2643
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ic01bbc5faee9492dba5b5d4dea0f659540da2c24
kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh
kubernetes/so/resources/config/docker-files/scripts/start-jboss-server.sh