mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +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
|
var cmd *exec.Cmd
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "windows":
|
case "windows":
|
||||||
cmd = exec.Command("cmd", "/c", "clip")
|
cmd = exec.Command("clip")
|
||||||
case "darwin":
|
case "darwin":
|
||||||
cmd = exec.Command("pbcopy")
|
cmd = exec.Command("pbcopy")
|
||||||
case "linux":
|
case "linux":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue