Skip to content

Commit

Permalink
fix: favor command-line over files (#2274)
Browse files Browse the repository at this point in the history
This impacts:
- envs
- inputs
- secrets
- vars
  • Loading branch information
jsoref committed Apr 10, 2024
1 parent ac13a1b commit 89e3c14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ func readEnvs(path string, envs map[string]string) bool {
log.Fatalf("Error loading from %s: %v", path, err)
}
for k, v := range env {
envs[k] = v
if _, ok := envs[k]; !ok {
envs[k] = v
}
}
return true
}
Expand Down

0 comments on commit 89e3c14

Please sign in to comment.