Skip to content

Commit

Permalink
Lint only bash files (#24)
Browse files Browse the repository at this point in the history
* Lint only bash files

* Update lint.yml
  • Loading branch information
igorpecovnik authored Dec 9, 2023
1 parent ea81912 commit cfd94f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cfd94f2

Please sign in to comment.