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 shfmt is a great autoformatter too https://github.com/mvdan/sh
GitHub - mvdan/sh: A shell parser, formatter, and interpreter with bash and zsh support; includes shfmt

A shell parser, formatter, and interpreter with bash and zsh support; includes shfmt - mvdan/sh

GitHub