Skip to content

Commit 141c4ac

Browse files
committed
Add: Added conversion of - to _
1 parent fc4d44f commit 141c4ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func loadEnv(secretsDir string) {
1919
content, _ := ioutil.ReadFile(filePath)
2020
envValue := strings.TrimSpace(string(content))
2121

22-
envName := strings.ToUpper(f.Name())
22+
envName := strings.ToUpper(strings.Replace(f.Name(), "-", "_", -1))
2323

2424
os.Setenv(envName, envValue)
2525
// env = append(env, fmt.Sprintf("%s=%s", envName, content_str))

0 commit comments

Comments
 (0)