feat: banner respect silent

This commit is contained in:
=
2025-04-09 01:24:38 +05:30
parent 026fd21fd4
commit d7dbd01ecf
2 changed files with 6 additions and 2 deletions

View File

@@ -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()
}

View File

@@ -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