Merge pull request #639 from mattn/fix-windows

Fix Windows
This commit is contained in:
Chris Allen Lane
2021-10-09 10:10:39 -04:00
committed by GitHub
4 changed files with 14 additions and 12 deletions

View File

@ -45,6 +45,9 @@ func main() {
envvars := map[string]string{}
for _, e := range os.Environ() {
pair := strings.SplitN(e, "=", 2)
if runtime.GOOS == "windows" {
pair[0] = strings.ToUpper(pair[0])
}
envvars[pair[0]] = pair[1]
}