mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Recursiveness (markdown)
@@ -16,6 +16,9 @@ To check files with one of multiple extensions:
|
||||
|
||||
```
|
||||
# Bash 4+
|
||||
# globstar makes ** recursive.
|
||||
# nullglob will prevent one of the extension pattens from appearing in the arg list
|
||||
# if they don't match.
|
||||
shopt -s globstar nullglob
|
||||
shellcheck /path/to/scripts/**/*.{sh,bash,ksh}
|
||||
|
||||
|
Reference in New Issue
Block a user