mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-25 14:05:03 +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
|
||||
// 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 {
|
||||
config.INFISICAL_URL = envInfisicalURL
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user