mirror of https://github.com/sirupsen/logrus.git
Update terminal_windows.go
This commit is contained in:
parent
3454d74a4c
commit
532c891a89
|
@ -42,6 +42,7 @@ func getVersion() (float64, error) {
|
||||||
return -1, err
|
return -1, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The output should be like "Microsoft Windows [Version XX.X.XXXXXX]"
|
||||||
version := strings.Replace(stdout.String(), "\n", "", -1)
|
version := strings.Replace(stdout.String(), "\n", "", -1)
|
||||||
version = strings.Replace(version, "\r\n", "", -1)
|
version = strings.Replace(version, "\r\n", "", -1)
|
||||||
|
|
||||||
|
@ -57,7 +58,7 @@ func getVersion() (float64, error) {
|
||||||
func init() {
|
func init() {
|
||||||
ver, err := getVersion()
|
ver, err := getVersion()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Activate Virtual Processing for Windows CMD
|
// Activate Virtual Processing for Windows CMD
|
||||||
|
|
Loading…
Reference in New Issue