mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
clipboard copy: don't run clip through cmd on Windows
This commit is contained in:
parent
0d48e346ad
commit
10bd3b47e9
1 changed files with 1 additions and 1 deletions
|
@ -2129,7 +2129,7 @@ func copyToClipboard(str string) {
|
|||
var cmd *exec.Cmd
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
cmd = exec.Command("cmd", "/c", "clip")
|
||||
cmd = exec.Command("clip")
|
||||
case "darwin":
|
||||
cmd = exec.Command("pbcopy")
|
||||
case "linux":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue