Commit 81cbad5
[BugFix] Read the last conf line when the file has no trailing newline
`while read line` returns a non-zero status on EOF, so when a conf file
does not end with a newline the final line is read into `$line` but the
loop body never runs and that variable is silently dropped.
Keep looping while `$line` is still non-empty so the last line is
exported as well.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: eason <1569163626@qq.com>1 parent 6b20161 commit 81cbad5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments