TIL about https://www.shellcheck.net, an open-source tool that can find bugs in your shellscripts!

… it certainly finds bugs in *my* shellscripts. /o\ #bangbangcon

ShellCheck – shell script analysis tool

ShellCheck finds bugs in your shell scripts

@blinry oh boy, I'm so never gonna use this on the stuff one scripted that actually works. They're cobbled together from SO posts and I don't grok the arcane details. One change and they could go kaboom

@alexcg @blinry This is 99% of all shell scripts everywhere.

I have shellcheck + flycheck in my editor and it gets really grumpy about everything. I do try to fix what I understand, though