Merge pull request #639 from mattn/fix-windows

Fix Windows
This commit is contained in:
Chris Allen Lane authored and GitHub committed 2021-10-09 10:10:39 -04:00
commit 23b6928874
4 files changed
+14 -12

No files matched your search

+3
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]
}