Skip to content

Commit

Permalink
Bugfix: enable linter on bash files, not just executables ones
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Sep 24, 2024
1 parent 6389997 commit 002f9ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
workflow_dispatch:
pull_request:

concurrency:
group: linter-${{github.event.pull_request.number}}
cancel-in-progress: true

jobs:

Shellcheck:
Expand All @@ -23,7 +27,7 @@ jobs:
shell: bash {0}
run: |
for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do
for file in $(find . -name "*.sh" ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do
if grep -qE "^#\!/.*bash" $file; then
shellcheck --severity=error $file || ret=$?
fi
Expand Down

0 comments on commit 002f9ab

Please sign in to comment.