adding more possible bash file extensions

Pat Myron
2019-03-30 22:01:10 -04:00
parent c11a85d1d2
commit 742d4042b8

@@ -21,10 +21,10 @@ To check files with one of multiple extensions:
# if they don't match.
# dot glob will match shell scripts in hidden directories.
shopt -s globstar nullglob dotglob
shellcheck /path/to/scripts/**/*.{sh,bash,ksh}
shellcheck /path/to/scripts/**/*.{sh,bash,ksh,bashrc,bash_profile,bash_login,bash_logout}
# POSIX
find /path/to/scripts -type f \( -name "*.sh" -o -name "*.bash" -o -name "*.ksh" \) -print |
find /path/to/scripts -type f \( -name "*.sh" -o -name "*.bash" -o -name "*.ksh" -o -name "*.bashrc" -o -name "*.bash_profile" -o -name "*.bash_login" -o -name "*.bash_logout" \) -print |
while IFS="" read -r file
do
shellcheck "$file"