Repository navigation
GH-46662: [CI][Dev] Fix shellcheck SC2148 errors in ci/scripts directory - #46663
Conversation
|
|
| @@ -1,3 +1,4 @@ | |||
| #!/usr/bin/env bash | |||
There was a problem hiding this comment.
| #!/usr/bin/env bash | |
| #!/usr/bin/env bash | |
| # |
There was a problem hiding this comment.
No.
We should not add shebang to util_*.sh because we don't execute them directly. We use them as source XXX.sh.
There was a problem hiding this comment.
Thanks. I added shellcheck disable=SC2148 instead of shebang.
There was a problem hiding this comment.
Can we use the following instead of disabling it?
https://www.shellcheck.net/wiki/SC2148
Use a shellcheck directive, adding # shellcheck shell=ksh before the first command in the file.
There was a problem hiding this comment.
Thanks. replace to shellcheck shell=bash.
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 19aadb2. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 6 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
We are trying to implement shellcheck on all sh files in #44748.
What changes are included in this PR?
shellcheck shell=bashinutil_*filesAre these changes tested?
Yes.
Are there any user-facing changes?
No.