Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/sandbox/src/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
if (this.defaultSession) {
// Set environment variables by executing export commands in the existing session
for (const [key, value] of Object.entries(envVars)) {
const escapedValue = value.replace(/'/g, "'\\''");
const escapedValue = value?.replace(/'/g, "'\\''");
const exportCommand = `export ${key}='${escapedValue}'`;

const result = await this.client.commands.execute(
Expand Down
Loading