ShellCheck

finds bugs in your shell scripts.

https://www.shellcheck.net/