Commit bd593d5
committed
fix(ci): handle files without trailing newline in vale-check.sh
Add `|| [[ -n "$f" ]]` to while read loops to catch the last line
even when input doesn't end with a newline. This is a common bash
pitfall where `while read` skips the final line without a terminator.1 parent 72c8752 commit bd593d5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments