We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a81c8bc + b1781ef commit c9f4958Copy full SHA for c9f4958
.github/workflows/static-checks.yml
@@ -51,12 +51,16 @@ jobs:
51
runs-on: ubuntu-latest
52
steps:
53
- name: Install ShellCheck
54
- run: sudo apt update && sudo apt -y install shellcheck
+ run: sudo apt update && sudo apt -y install shellcheck file
55
56
- uses: actions/checkout@v4
57
with:
58
fetch-depth: 0
59
60
- name: Run ShellCheck
61
- run: shellcheck scripts/*.sh
62
-
+ run: |
+ # Run shellcheck against all files outside .git/ that `file` reports
63
+ # as text/x-shellscript
64
+ find . -path ./.git -prune -o -print0 | \
65
+ xargs -0n1 sh -c 'test "$(file --brief --mime-type "$1")" = "text/x-shellscript" && printf "%s\000" "$1"' -- | \
66
+ xargs -0t shellcheck
0 commit comments