git-lfs/tools/cygwin_windows.go
2017-02-20 15:25:43 -07:00

19 lines
269 B
Go

// +build windows
package tools
import (
"bytes"
"github.com/git-lfs/git-lfs/subprocess"
)
func isCygwin() bool {
cmd := subprocess.ExecCommand("uname")
out, err := cmd.Output()
if err != nil {
return false
}
return bytes.Contains(out, []byte("CYGWIN"))
}