Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ jobs:

- name: Run ShellCheck
run: |
if compgen -G "scripts/*.sh" > /dev/null; then
shellcheck --severity=warning scripts/*.sh
# Recurse so subdirectories like scripts/lib/ (sourceable libraries)
# are linted too. -x follows `# shellcheck source=...` directives.
shopt -s globstar nullglob
shell_files=(scripts/**/*.sh)
if [ ${#shell_files[@]} -gt 0 ]; then
shellcheck --severity=warning -x "${shell_files[@]}"
else
echo "No shell scripts found — skipping"
fi
Expand Down
Loading
Loading