Lint only bash files (#24)

* Lint only bash files

* Update lint.yml
This commit is contained in:
Igor
2023-12-09 15:48:47 +01:00
committed by GitHub
parent ea81912f58
commit cfd94f2fb2

View File

@@ -23,4 +23,9 @@ jobs:
shell: bash {0}
run: |
for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do shellcheck -x $file; done
for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do
if grep -qE "^#\!/.*bash" $file; then
shellcheck --severity=error $file || ret=$?
fi
done
exit $ret