Skip to content

Commit cfd94f2

Browse files
authored
Lint only bash files (#24)
* Lint only bash files * Update lint.yml
1 parent ea81912 commit cfd94f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ jobs:
2323
shell: bash {0}
2424
run: |
2525
26-
for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do shellcheck -x $file; done
26+
for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do
27+
if grep -qE "^#\!/.*bash" $file; then
28+
shellcheck --severity=error $file || ret=$?
29+
fi
30+
done
31+
exit $ret

0 commit comments

Comments
 (0)