summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-12 13:37:12 -0400
committerDax Raad <[email protected]>2025-06-12 13:37:12 -0400
commitb536b45536085f764a55c55d3b583fc8bd4e43d7 (patch)
tree20362de7c8bbe0a0f89a12bc2e06fda349dc90e7
parent81c245035f972c57ebc5f444a34c8340072eab93 (diff)
downloadopencode-b536b45536085f764a55c55d3b583fc8bd4e43d7.tar.gz
opencode-b536b45536085f764a55c55d3b583fc8bd4e43d7.zip
Fix AUR SSH key path handling in publish script
Quote and trim AUR_KEY environment variable to handle paths with spaces and multiline content properly. 🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <[email protected]>
-rwxr-xr-xpackages/opencode/script/publish.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts
index 208dc6500..61354735d 100755
--- a/packages/opencode/script/publish.ts
+++ b/packages/opencode/script/publish.ts
@@ -145,7 +145,7 @@ if (!snapshot) {
await $`rm -rf ./dist/aur-opencode-bin`
const gitEnv: Record<string, string> = process.env["AUR_KEY"]
- ? { GIT_SSH_COMMAND: `ssh -i ${process.env["AUR_KEY"]}` }
+ ? { GIT_SSH_COMMAND: `ssh -i "${process.env["AUR_KEY"].trim()}"` }
: {}
await $`git clone ssh://[email protected]/opencode-bin.git ./dist/aur-opencode-bin`.env(