We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 652c2ef commit da5a772Copy full SHA for da5a772
src/SandboxClient/commands.ts
@@ -133,7 +133,10 @@ export class SandboxCommands {
133
? `source $HOME/.private/.env 2>/dev/null || true && env ${Object.entries(
134
passedEnv
135
)
136
- .map(([key, value]) => `${key}=${value}`)
+ .map(([key, value]) => {
137
+ const escapedValue = String(value).replace(/'/g, "'\\''");
138
+ return `${key}='${escapedValue}'`;
139
+ })
140
.join(" ")} bash -c '${escapedCommand}'`
141
: `source $HOME/.private/.env 2>/dev/null || true && bash -c '${escapedCommand}'`;
142
0 commit comments