Found this analyser for bash files, pretty useful tool
https://github.com/koalaman/shellcheck
there is a webversion here http://www.shellcheck.net/