Skip to content

Commit

Permalink
Normalize all env keys by making them uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrath committed Jul 2, 2024
1 parent c14ecc3 commit 17335f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ func GetEnvironMap() map[string]string {
for _, e := range env {
kv := strings.SplitN(e, "=", 2)
if len(kv) == 2 {
envs[kv[0]] = kv[1]
// in some rare environments we got 'Path' instead of 'PATH'
kUpper := strings.ToUpper(kv[0])
envs[kUpper] = kv[1]
}
}
return envs
Expand Down

0 comments on commit 17335f3

Please sign in to comment.