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 npm-based project, you should exclude the node_modules directory:

find … -not -path '*/node_modules/*' -print0 …

If you use pnpm:

find … -not -path '*/.pnpm-store/*' -print0 …

If you use Husky:

find … -not -path '*/.husky/*' -print0 …

Usage

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

Prerequisites