mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 05:27:48 +00:00
fix edge case of input same as default clobber env
This commit is contained in:
@@ -38,9 +38,10 @@ func init() {
|
|||||||
|
|
||||||
// if config.INFISICAL_URL is set to the default value, check if INFISICAL_URL is set in the environment
|
// if config.INFISICAL_URL is set to the default value, check if INFISICAL_URL is set in the environment
|
||||||
// this is used to allow overrides of the default value
|
// this is used to allow overrides of the default value
|
||||||
if config.INFISICAL_URL == util.INFISICAL_DEFAULT_URL {
|
if !rootCmd.Flag("domain").Changed {
|
||||||
if envInfisicalURL, ok := os.LookupEnv("INFISICAL_URL"); ok {
|
if envInfisicalURL, ok := os.LookupEnv("INFISICAL_URL"); ok {
|
||||||
config.INFISICAL_URL = envInfisicalURL
|
config.INFISICAL_URL = envInfisicalURL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user