Skip to content

Commit

Permalink
Merge pull request #7 from MisterMX/feat/first-implementation
Browse files Browse the repository at this point in the history
fix: panic in getEnvMap
  • Loading branch information
MisterMX authored Feb 12, 2024
2 parents 6d081f1 + c5d1f7f commit c12623f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/config/project_properties.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package config

import (
"fmt"
"os"
"strings"

Expand Down Expand Up @@ -65,7 +66,8 @@ func getEnvMap() map[string]string {
environ := os.Environ()
m := make(map[string]string, len(environ))
for _, s := range os.Environ() {
split := strings.SplitN(s, "=", 1)
split := strings.SplitN(s, "=", 2)
fmt.Printf("%v\n", split)
m[split[0]] = split[1]
}
return m
Expand Down

0 comments on commit c12623f

Please sign in to comment.