Commit 45e8ec1
committed
🤖 fix: have bash decode base64 to avoid all quoting issues
The previous approach had PowerShell decode base64 then pass to bash -c,
but the decoded script contained double quotes that conflicted with the
outer quoting.
New approach: pass base64 string directly to bash which decodes it:
wsl bash -c 'echo BASE64 | base64 -d | bash'
This works because:
1. Base64 only contains [A-Za-z0-9+/=] - no special chars
2. The decode happens inside bash, so no quoting issues
3. Single quotes pass the string literally through PowerShell to WSL1 parent c0fde48 commit 45e8ec1
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | 393 | | |
395 | 394 | | |
396 | | - | |
397 | | - | |
398 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
399 | 400 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 401 | + | |
406 | 402 | | |
407 | 403 | | |
408 | 404 | | |
| |||
0 commit comments