Skip to content

Commit

Permalink
use newlines instead of null bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilith Hafner authored and Lilith Hafner committed Oct 16, 2023
1 parent 5778a1e commit 6f18b0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
| tar -xz -C "${{ runner.temp }}/typos" ./typos
"${{ runner.temp }}/typos/typos" --version
echo z
OLD_FILES=$(git diff-index --name-only --diff-filter=ad -z FETCH_HEAD)
OLD_FILES=$(git diff-index --name-only --diff-filter=ad FETCH_HEAD)
echo a
NEW_FILES=$(git diff-index --name-only --diff-filter=d -z FETCH_HEAD)
NEW_FILES=$(git diff-index --name-only --diff-filter=d FETCH_HEAD)
echo b
NEW_TYPOS=$(echo -n $NEW_FILES | xargs -0 "${{ runner.temp }}/typos/typos" --format json)
NEW_TYPOS=$(echo -n $NEW_FILES | xargs -d '\n' "${{ runner.temp }}/typos/typos" --format json)
echo c
git checkout FETCH_HEAD -- $OLD_FILES
echo d
OLD_TYPOS=$(echo -n $OLD_FILES | xargs -0 "${{ runner.temp }}/typos/typos" --format json)
OLD_TYPOS=$(echo -n $OLD_FILES | xargs -d '\n' "${{ runner.temp }}/typos/typos" --format json)
echo e
python -c '
import sys, json
Expand Down

0 comments on commit 6f18b0c

Please sign in to comment.