SmsS4
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
weed/util/fla9/fla9.go
|
@ -1059,10 +1059,12 @@ func (f *FlagSet) ParseEnv(environ []string) error { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
envKey := strings.ToUpper(flag.Name) |
|
|
envKey := strings.ToUpper(flag.Name) |
|
|
|
|
|
|
|
|
if f.envPrefix != "" { |
|
|
if f.envPrefix != "" { |
|
|
envKey = f.envPrefix + "_" + envKey |
|
|
envKey = f.envPrefix + "_" + envKey |
|
|
} |
|
|
} |
|
|
envKey = strings.Replace(envKey, "-", "_", -1) |
|
|
envKey = strings.Replace(envKey, "-", "_", -1) |
|
|
|
|
|
envKey = strings.Replace(envKey, ".", "_", -1) |
|
|
|
|
|
|
|
|
value, isSet := env[envKey] |
|
|
value, isSet := env[envKey] |
|
|
if !isSet { |
|
|
if !isSet { |
|
|