shellscript_check

This script will invoke ShellCheck on *.sh files in the given directory ($PWD if not given) and its subdirectories.

If you copy this script into a Node.js-based project you should exclude the node_modules directory:

find … -name '.sh' -not -path '/node_modules/*' -print0 …

If you use Husky:

find … -name '.sh' -not -path '/node_modules/' -not -path '/.husky/*' -print0 …`

Usage

$ scripts/general/shellscript_check.sh
$ scripts/general/shellscript_check.sh /tmp

Prerequisites