Skip to content

Commit

Permalink
fix the way to get the list of the environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexucis committed Jan 27, 2022
1 parent ee4723c commit 7cdbad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lamenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ type Lamenv struct {
func New() *Lamenv {
env := make(map[string]bool)
for _, e := range os.Environ() {
envSplit := strings.Split(e, "=")
envSplit := strings.SplitN(e, "=", 2)
if len(envSplit) != 2 {
continue
}
Expand Down

0 comments on commit 7cdbad2

Please sign in to comment.