diff --git a/build.go b/build.go index 06c5824..ae6d555 100644 --- a/build.go +++ b/build.go @@ -80,7 +80,7 @@ func validateEnvironment() error { // Confirm it is MinGW 64 if byts, err := exec.Command("uname", "-a").CombinedOutput(); err != nil { return fmt.Errorf("This has to be run in a MSYS or MinGW shell, uname failed: %v", err) - } else if !bytes.HasPrefix(byts, []byte("MINGW64")) && !bytes.HasPrefix(byts, []byte("MSYS2")) { + } else if !bytes.HasPrefix(byts, []byte("MINGW64")) && !bytes.HasPrefix(byts, []byte("MSYS2")) && !bytes.HasPrefix(byts, ["MSYS_NT"]) { return fmt.Errorf("This has to be run in a MSYS or MinGW64 shell, uname output: %v", string(byts)) } case "linux":