Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix edge case of input same as default clobber env

Ashley Hutson74fb64bbb97f
diff --git a/cli/packages/cmd/root.go b/cli/packages/cmd/root.go
index 9431af0a44..3f6f4b357a 100644
--- a/cli/packages/cmd/root.go
+++ b/cli/packages/cmd/root.go
@@ -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
}
}
+
}