Whamcloud - gitweb
LU-14707 tests: Prefer #!/bin/bash 79/49479/4
authorTimothy Day <timday@amazon.com>
Thu, 15 Dec 2022 06:19:01 +0000 (06:19 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 Jan 2023 02:34:34 +0000 (02:34 +0000)
commit4c445462511592aa2f7024a38872271b7c93294c
tree5e0ad90f1e9ffa94a3b949b16f8670987eae480d
parent209afbe28b5f164bda81f54ff0797be459e14b44
LU-14707 tests: Prefer #!/bin/bash

Change remaining #!/bin/sh to use bash.
Add a warning to the git-hook about using
sh in shebangs. Using bash allows scripts to
freely use bash-isms and lowers the risks
of bugs on Debian based platforms.

Also, change remaining callers to use bash
rather than sh.

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I10f3e8f71435c38cfc1650dd13168d7ed5d3b31f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49479
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
23 files changed:
LUSTRE-VERSION-GEN
autogen.sh
contrib/git-hooks/prepare-commit-msg
contrib/lbuild/lbuild
debian/dkms.conf.in
debian/lustre-client-modules-dkms.postinst
debian/lustre-client-modules-dkms.prerm
debian/postinst
debian/postrm
debian/rules
lnet/utils/lnetunload
lustre/BUILDING
lustre/conf/resource/Lustre
lustre/conf/resource/healthLNET
lustre/conf/resource/healthLUSTRE
lustre/scripts/dkms.mkconf
lustre/scripts/ko2iblnd-probe
lustre/scripts/lc_mon
lustre/scripts/lustre_req_history
lustre/tests/runiozone
lustre/tests/runobdstat
lustre/tests/runvmstat
lustre/tests/test-framework.sh