ShellCheckl: Find Bugs in Shell Scripts
Many engineers rely on trial and error when working with shell scripts, but there’s a more efficient approach.
Use ShellCheck, a powerful static analysis tool for bash/sh shell scripts.
ShellCheck provides warnings and suggestions to help you identify and fix potential issues.
Here is the demo