diff options
| author | Aiden Cline <[email protected]> | 2025-11-18 14:06:45 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-11-18 14:06:45 -0600 |
| commit | e09af2cb4b1afca917604f542fc874fa048af406 (patch) | |
| tree | e1c813f289d19afabb1d3254568de7440b91843b | |
| parent | 14bd3b1d30ee853a31099e9652781ccaca09b1d4 (diff) | |
| download | opencode-e09af2cb4b1afca917604f542fc874fa048af406.tar.gz opencode-e09af2cb4b1afca917604f542fc874fa048af406.zip | |
fix windows bash tool issue
| -rw-r--r-- | packages/opencode/src/tool/bash.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts index 445c7b68a..a88e7c4c2 100644 --- a/packages/opencode/src/tool/bash.ts +++ b/packages/opencode/src/tool/bash.ts @@ -22,7 +22,7 @@ export const log = Log.create({ service: "bash-tool" }) const resolveWasm = (asset: string) => { if (asset.startsWith("file://")) return fileURLToPath(asset) - if (asset.startsWith("/")) return asset + if (asset.startsWith("/") || /^[a-z]:/i.test(asset)) return asset const url = new URL(asset, import.meta.url) return fileURLToPath(url) } |
