mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 23:15:15 +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"
|
echo "No shell files found; skipping shfmt"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
shfmt -i 4 -ci -sr -d "${files[@]}"
|
"${search_cmd[@]}" -exec shfmt -i 4 -ci -sr -d {} +
|
||||||
|
|
||||||
- name: Run shellcheck
|
- name: Run shellcheck
|
||||||
run: |
|
run: |
|
||||||
@@ -48,4 +48,4 @@ jobs:
|
|||||||
echo "No shell files found; skipping shellcheck"
|
echo "No shell files found; skipping shellcheck"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
shellcheck --rcfile .shellcheckrc "${files[@]}"
|
"${search_cmd[@]}" -exec shellcheck --rcfile .shellcheckrc {} +
|
||||||
|
|||||||
Reference in New Issue
Block a user