mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-06-10 13:30:49 +00:00
Treat empty PAGES_* environment variables as nonexistent.
The behavior for lists is confusing otherwise: it results in `[""]`. V12-Ref: F-77212
This commit is contained in:
+1
-1
@@ -357,7 +357,7 @@ func Configure(tomlPaths ...string) (config *Config, err error) {
|
||||
|
||||
// inject values from the environment, overriding everything else
|
||||
err = walkConfig(config, func(envName string, reflValue reflect.Value) error {
|
||||
if envValue, found := os.LookupEnv(envName); found {
|
||||
if envValue, found := os.LookupEnv(envName); found && envValue != "" {
|
||||
return setConfigValue(reflValue, envValue)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user