Skip to content

Commit 3a64ca6

Browse files
authored
Fix newlines.yml
Now supports filenames with spaces
1 parent 512dc07 commit 3a64ca6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/newlines.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ jobs:
1717

1818
- name: Check for missing newlines
1919
run: |
20-
files=$(git ls-files)
21-
2220
newline_error=0
2321
24-
for file in $files; do
22+
git ls-files | while IFS= read -r file; do
2523
if file --mime "$file" | grep -q "binary"; then
26-
#echo "Skipping binary file: $file"
2724
continue
2825
fi
2926

0 commit comments

Comments
 (0)