1
1
Fork 0
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:
bitraid 2024-10-12 13:51:24 +03:00
parent 0d48e346ad
commit 10bd3b47e9
No known key found for this signature in database
GPG key ID: 21A3B0D950B23728

View file

@ -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":