From 6fc1928fca92b22dff258381e3c4de01f069f58f Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sun, 12 Oct 2025 16:27:16 +0800 Subject: [PATCH] Improve shell workflow file discovery (#24) --- .github/workflows/shell-format.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/shell-format.yml b/.github/workflows/shell-format.yml index 0a51c43..5d9755b 100644 --- a/.github/workflows/shell-format.yml +++ b/.github/workflows/shell-format.yml @@ -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 {} +