6 ms·
Shellcheck is a godsend https://github.com/jamespwilliams/strictbash https://github.com/jamespwilliams/strictbash, I wrote this little wrapper a while back tha
by jamespwilliams 3y ago
Shellcheck is a godsend
https://github.com/jamespwilliams/strictbash https://github.com/jamespwilliams/strictbash, I wrote this little wrapper a while back that you can use as a shebang for scripts. It runs shellcheck for you before the script executes, so it’s not possible to run the script at all if there are failures. It also sets all the bash “strict mode” [0] flags.
[0] http://redsymbol.net/articles/unofficial-bash-strict-mode/ http://redsymbol.net/articles/unofficial-bash-strict-mode/