Skip to content

Commit 67841a9

Browse files
committed
pass env vars to command line
1 parent f159f95 commit 67841a9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

shell-local/run.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ func createFlattenedEnvVars(config *Config) (string, error) {
206206
envVars[keyValue[0]] = strings.Replace(keyValue[1], "'", `'"'"'`, -1)
207207
}
208208

209+
for k, v := range config.Env {
210+
// Store pair, replacing any single quotes in value so they parse
211+
// correctly with required environment variable format
212+
envVars[k] = strings.Replace(v, "'", `'"'"'`, -1)
213+
}
214+
209215
// Create a list of env var keys in sorted order
210216
var keys []string
211217
for k := range envVars {

0 commit comments

Comments
 (0)