Refactor: use POSIX shell function declaration 75/67575/13
authorGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 4 May 2021 09:27:12 +0000 (11:27 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 11 May 2021 19:24:55 +0000 (21:24 +0200)
commit61dc9c129cc8bf0618b03d543c406e5dc1f12e61
tree62e3944c5cac7435b0d09ae011a94b58e50d1577
parent931ae70099cfd091e4beae797755ea54ca27876a
Refactor: use POSIX shell function declaration

POSIX function style is already used in most of shell scripts.
By the way, this style fixes bashate E020 warnings.

Non POSIX function declarations in a format different from
^function name {$ are warned by bashate.
There are several equivalent ways to define functions in Bash.
This is for consistency.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I5f02e7052101617314157ec408532dd024e80a72
jenkins-init-scripts/lf-env.sh
shell/logs-deploy.sh
shell/openstack-stack-copy-ssh-keys.sh
shell/scrape-job-cost.sh
shell/sudo-logs.sh