We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4fe2e4 + 22c0c0b commit 2c16b08Copy full SHA for 2c16b08
2 files changed
.github/workflows/shellcheck.yml .github/workflows/lint.yml.github/workflows/shellcheck.yml renamed to .github/workflows/lint.yml
@@ -18,7 +18,4 @@ jobs:
18
run: sudo apt install shellcheck
19
- name: Lint sources with shellcheck
20
run: |
21
- # Recursively find all shell scripts in the build-scripts directory with a shebang
22
- grep -Erl '^(#!/(bin|usr/bin)/(env )?(sh|bash))' build-scripts/ | while read -r file; do
23
- shellcheck --external-sources --source-path=build-scripts "$file"
24
- done
+ ./ci/lint.sh
ci/lint.sh
@@ -0,0 +1,11 @@
1
+#!/usr/bin/env bash
2
+shellcheck_dirs() {
3
+ grep -Erl '^(#!/(bin|usr/bin)/(env )?(sh|bash))' "$1" | while read -r file; do
4
+ shellcheck --external-sources --source-path=build-scripts "$file"
5
+ done
6
+}
7
+
8
+shellcheck_dirs build-scripts/
9
10
+# some dirs are "dirty" aka need some work so don't fail on those yet
11
+shellcheck_dirs ci/ packaging/ || true
0 commit comments