Skip to content
Open
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
5 changes: 4 additions & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
SEVERITY: ${{ inputs.severity }}
run: |
if [ -n "$SCRIPT_DIRS" ]; then
find "$SCRIPT_DIRS" -type f -print0 | xargs -0 shellcheck --severity="$SEVERITY"
# Split the space-separated list into an array so each dir/file is a
# distinct find argument (quoting "$SCRIPT_DIRS" made it a single path).
read -ra dirs <<< "$SCRIPT_DIRS"
find "${dirs[@]}" -type f -print0 | xargs -0 shellcheck --severity="$SEVERITY"
else
find . -name "*.sh" -not -path "./.git/*" -print0 | xargs -0 shellcheck --severity="$SEVERITY"
fi