Skip to content

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

feat: banner respect silent

=d7dbd01ecf4c
diff --git a/cli/packages/cmd/root.go b/cli/packages/cmd/root.go
index 5096178b3a..ca8d35d42f 100644
--- a/cli/packages/cmd/root.go
+++ b/cli/packages/cmd/root.go
@@ -50,7 +50,7 @@ func init() {
config.INFISICAL_URL = util.AppendAPIEndpoint(config.INFISICAL_URL)
- util.DisplayAptInstallationChangeBanner()
+ util.DisplayAptInstallationChangeBanner(silent)
if !util.IsRunningInDocker() && !silent {
util.CheckForUpdate()
}
diff --git a/cli/packages/util/check-for-update.go b/cli/packages/util/check-for-update.go
index 06c161b5d9..4aae75f657 100644
--- a/cli/packages/util/check-for-update.go
+++ b/cli/packages/util/check-for-update.go
@@ -53,7 +53,11 @@ func CheckForUpdate() {
}
}
-func DisplayAptInstallationChangeBanner() {
+func DisplayAptInstallationChangeBanner(isSilent bool) {
+ if isSilent {
+ return
+ }
+
if runtime.GOOS == "linux" {
_, err := exec.LookPath("apt-get")
isApt := err == nil