- Issue created by @andypost
Change the shebang to
#!/bin/sh
then run ShellCheck on the file. Fix everything.
meantime core/scripts/dev/commit-code-check.sh
script requires bash to be executed but there's not a lot of bashisms involved so could be cleaned
for example conditions using [[ ]]
replace all bash-specific places with POSIX compatible approach, ref https://mywiki.wooledge.org/Bashism
patch/review/commit
Change the shebang to #!/bin/sh
then run ShellCheck on the file. Fix everything.