Commit b2dfc8e
fix: convert shellenv array to string for PowerShell Invoke-Expression
The issue was that PowerShell's & operator returns an array of output lines,
but Invoke-Expression requires a single string.
Error: 'Cannot convert System.Object[] to the type System.String required by parameter Command'
Fix: Use -join "`n" to convert the array to a newline-delimited string.
This allows Invoke-Expression to properly evaluate the shellenv output.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 25f1e8f commit b2dfc8e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
0 commit comments