Skip to content

Commit

Permalink
pass env vars to command line
Browse files Browse the repository at this point in the history
  • Loading branch information
azr committed Feb 15, 2022
1 parent f159f95 commit 67841a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shell-local/run.go
Expand Up @@ -206,6 +206,12 @@ func createFlattenedEnvVars(config *Config) (string, error) {
envVars[keyValue[0]] = strings.Replace(keyValue[1], "'", `'"'"'`, -1)
}

for k, v := range config.Env {
// Store pair, replacing any single quotes in value so they parse
// correctly with required environment variable format
envVars[k] = strings.Replace(v, "'", `'"'"'`, -1)
}

// Create a list of env var keys in sorted order
var keys []string
for k := range envVars {
Expand Down

0 comments on commit 67841a9

Please sign in to comment.