Commit e2e7f3f
committed
🤖 fix: use base64 encoding instead of stdin for PowerShell WSL wrapper
Stdin piping to PowerShell didn't work reliably ($input and [Console]::In
both failed). Instead, use base64 encoding to embed the script safely in
the PowerShell command line:
1. Base64 encode the bash script (completely avoids escaping issues)
2. PowerShell decodes it with [System.Text.Encoding]::UTF8.GetString()
3. Echo the decoded script and pipe to WSL bash
This approach is robust because base64 strings only contain [A-Za-z0-9+/=]
which have no special meaning in PowerShell.
Also removes the now-unused stdin field from SpawnConfig.1 parent 3a51bab commit e2e7f3f
File tree
4 files changed
+17
-54
lines changed- src/node
- runtime
- services
- utils
- main
4 files changed
+17
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 106 | | |
114 | 107 | | |
115 | 108 | | |
| |||
388 | 381 | | |
389 | 382 | | |
390 | 383 | | |
391 | | - | |
392 | 384 | | |
393 | 385 | | |
394 | 386 | | |
395 | 387 | | |
396 | | - | |
397 | | - | |
| 388 | + | |
398 | 389 | | |
399 | 390 | | |
400 | 391 | | |
| |||
403 | 394 | | |
404 | 395 | | |
405 | 396 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 397 | | |
413 | 398 | | |
414 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
146 | | - | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 153 | | |
162 | 154 | | |
163 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 138 | | |
146 | 139 | | |
147 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
388 | 386 | | |
389 | 387 | | |
390 | 388 | | |
391 | | - | |
| 389 | + | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 405 | + | |
412 | 406 | | |
413 | | - | |
414 | 407 | | |
415 | 408 | | |
416 | 409 | | |
| |||
0 commit comments