We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc4d44f commit 141c4acCopy full SHA for 141c4ac
main.go
@@ -19,7 +19,7 @@ func loadEnv(secretsDir string) {
19
content, _ := ioutil.ReadFile(filePath)
20
envValue := strings.TrimSpace(string(content))
21
22
- envName := strings.ToUpper(f.Name())
+ envName := strings.ToUpper(strings.Replace(f.Name(), "-", "_", -1))
23
24
os.Setenv(envName, envValue)
25
// env = append(env, fmt.Sprintf("%s=%s", envName, content_str))
0 commit comments