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