mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 15:53:28 +00:00
fix: osascript for clipboard typo (#5430)
This commit is contained in:
parent
2da527aaa6
commit
2e417c4d8c
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ export namespace Clipboard {
|
|||
const getCopyMethod = lazy(() => {
|
||||
const os = platform()
|
||||
|
||||
if (os === "darwin" && Bun.which("oascript")) {
|
||||
if (os === "darwin" && Bun.which("osascript")) {
|
||||
console.log("clipboard: using osascript")
|
||||
return async (text: string) => {
|
||||
const escaped = text.replace(/\\/g, "\\\\").replace(/"/g, '\\"')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue