We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0ddc36 + 732c37c commit 6363254Copy full SHA for 6363254
.github/workflows/shellcheck.yml
@@ -25,9 +25,9 @@ jobs:
25
run: |
26
echo "Checking only changed shell files in PR..."
27
git fetch origin ${{ github.base_ref }}
28
- FILES=$(git diff --name-only origin/${{ github.base_ref }} -- '*.sh' | xargs -r -n1 echo | xargs -r realpath --no-symlinks --canonicalize-missing 2>/dev/null || true)
+ FILES=$(git diff --diff-filter=d --name-only origin/${{ github.base_ref }} -- '*.sh')
29
if [ -n "$FILES" ]; then
30
- echo "$FILES" | tr ' ' '\n' | xargs -r shellcheck -S warning -e SC1091,SC2230,SC3043
+ echo "$FILES" | tr '\n' '\0' | xargs -0 -r shellcheck -S warning -e SC1091,SC2230,SC3043
31
else
32
echo "No shell files to lint."
33
fi
0 commit comments