fix(cli): quote env values with special characters

This commit is contained in:
Dotta
2026-03-13 15:07:49 -05:00
parent aa799bba4c
commit 626a8f1976
3 changed files with 27 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ describe("worktree helpers", () => {
const envContents = fs.readFileSync(envPath, "utf8");
expect(envContents).toContain("PAPERCLIP_AGENT_JWT_SECRET=worktree-shared-secret");
expect(envContents).toContain("PAPERCLIP_WORKTREE_NAME=repo");
expect(envContents).toMatch(/PAPERCLIP_WORKTREE_COLOR=#[0-9a-f]{6}/);
expect(envContents).toMatch(/PAPERCLIP_WORKTREE_COLOR=\"#[0-9a-f]{6}\"/);
} finally {
process.chdir(originalCwd);
if (originalJwtSecret === undefined) {