ShellCheck

automatically detects problems in sh/bash scripts and commands.

Paste shell script

or visit on Github for source code and local installation guide! Advice is shell specific, so include the shebang!

Get feedback

  
      Automated shell script analysis appears here.  
Also check out ExplainShell.com!