summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/script/promote-models.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-02-07 13:32:19 -0500
committerFrank <[email protected]>2026-02-07 13:32:23 -0500
commit04f216902bfb517e88ffbfbe7dcf0d7767671ba6 (patch)
tree732fa940db121d131231eea0ce5d1c73a98209b1 /packages/console/core/script/promote-models.ts
parent8ad5262a87e00ba9ee8ca9bde0b04d40024b37d4 (diff)
downloadopencode-04f216902bfb517e88ffbfbe7dcf0d7767671ba6.tar.gz
opencode-04f216902bfb517e88ffbfbe7dcf0d7767671ba6.zip
wip: zen
Diffstat (limited to 'packages/console/core/script/promote-models.ts')
-rwxr-xr-xpackages/console/core/script/promote-models.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/console/core/script/promote-models.ts b/packages/console/core/script/promote-models.ts
index 9a9b2dcad..62d9bd6ff 100755
--- a/packages/console/core/script/promote-models.ts
+++ b/packages/console/core/script/promote-models.ts
@@ -29,5 +29,5 @@ ZenData.validate(JSON.parse(values.join("")))
// update the secret
const envFile = Bun.file(path.join(os.tmpdir(), `models-${Date.now()}.env`))
-await envFile.write(values.map((v, i) => `ZEN_MODELS${i + 1}=${v}`).join("\n"))
+await envFile.write(values.map((v, i) => `ZEN_MODELS${i + 1}="${v.replace(/"/g, '\\"')}"`).join("\n"))
await $`bun sst secret load ${envFile.name} --stage ${stage}`.cwd(root)