mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 15:39:42 +00:00
Improve shell workflow file discovery (#24)
This commit is contained in:
4
.github/workflows/shell-format.yml
vendored
4
.github/workflows/shell-format.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
||||
echo "No shell files found; skipping shfmt"
|
||||
exit 0
|
||||
fi
|
||||
shfmt -i 4 -ci -sr -d "${files[@]}"
|
||||
"${search_cmd[@]}" -exec shfmt -i 4 -ci -sr -d {} +
|
||||
|
||||
- name: Run shellcheck
|
||||
run: |
|
||||
@@ -48,4 +48,4 @@ jobs:
|
||||
echo "No shell files found; skipping shellcheck"
|
||||
exit 0
|
||||
fi
|
||||
shellcheck --rcfile .shellcheckrc "${files[@]}"
|
||||
"${search_cmd[@]}" -exec shellcheck --rcfile .shellcheckrc {} +
|
||||
|
||||
Reference in New Issue
Block a user