Fix Windows

This commit is contained in:
Yasuhiro Matsumoto
2021-09-29 01:33:59 +09:00
parent 768d55e5d4
commit b825e0f535
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]
}