Commit 7a5288a
committed
🤖 fix: use eval with command substitution to avoid stdin issues
Scripts containing 'exec </dev/null' would break when piped to bash via
'echo BASE64 | base64 -d | bash' because the stdin redirection would
cut off bash's ability to read the rest of the script.
Solution: Use 'eval "$(echo BASE64 | base64 -d)"' which captures the
entire decoded script via command substitution before executing it.
This way stdin redirection in the script doesn't affect script reading.1 parent 5abbe09 commit 7a5288a
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
400 | 405 | | |
401 | | - | |
| 406 | + | |
402 | 407 | | |
403 | 408 | | |
404 | 409 | | |
| |||
0 commit comments