Skip to content

Commit

Permalink
Lint only bash files
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik authored Dec 9, 2023
1 parent c6348a3 commit 117b81f
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 "^#\!/.*" $file; then
shellcheck --severity=error $file || ret=$?
fi
done
exit $ret

0 comments on commit 117b81f

Please sign in to comment.