by nodesocket · 8y ago · 0 comments
[1] https://github.com/koalaman/shellcheck
[2] https://github.com/SublimeLinter/SublimeLinter-shellcheck
Some of the tips are obscure stuff that I never would have realized, like using `command -v` instead of `which` in my (arch) linux install script because command -v is more portable.
And then you have the classic stuff like printf instead of echo -e, using pritnf string formatting, writing `\\n` instead of `\n`, double quoting variables etc