1
0
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:
Tw93
2025-10-12 16:27:16 +08:00
committed by GitHub
parent aeb309c522
commit 6fc1928fca

View File

@@ -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 {} +