Commit 6742e3b
committed
fix: use strings.Fields to collapse whitespace in prepareCmd
strings.Split on a single space produces empty-string arguments when
the command string contains multiple consecutive spaces (e.g. "php app.php"
→ ["php", "", "app.php"]). strings.Fields trims leading/trailing whitespace
and collapses runs of whitespace, matching user intent.1 parent 4fbba01 commit 6742e3b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments