[1]: https://github.com/koalaman/shellcheck
It will highlight common mistakes, and their wiki explains each one detail and how you should use an alternate, better implementation.
[1]: https://github.com/koalaman/shellcheck