mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-10 06:48:04 -05:00
fix: #997 use setting env value over default values
This commit is contained in:
@@ -103,8 +103,9 @@ func (o *Setting) IsDefined() bool {
|
||||
}
|
||||
|
||||
func (o *Setting) Configure() error {
|
||||
if o.Value == "" {
|
||||
o.Value = os.Getenv(o.EnvVariable)
|
||||
envValue := os.Getenv(o.EnvVariable)
|
||||
if envValue != "" {
|
||||
o.Value = envValue
|
||||
}
|
||||
return o.IsValidErr()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user