diff options
| author | Dax Raad <[email protected]> | 2025-06-12 13:37:12 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-12 13:37:12 -0400 |
| commit | b536b45536085f764a55c55d3b583fc8bd4e43d7 (patch) | |
| tree | 20362de7c8bbe0a0f89a12bc2e06fda349dc90e7 | |
| parent | 81c245035f972c57ebc5f444a34c8340072eab93 (diff) | |
| download | opencode-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-x | packages/opencode/script/publish.ts | 2 |
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( |
