mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: banner respect silent
This commit is contained in:
@@ -50,7 +50,7 @@ func init() {
|
|||||||
|
|
||||||
config.INFISICAL_URL = util.AppendAPIEndpoint(config.INFISICAL_URL)
|
config.INFISICAL_URL = util.AppendAPIEndpoint(config.INFISICAL_URL)
|
||||||
|
|
||||||
util.DisplayAptInstallationChangeBanner()
|
util.DisplayAptInstallationChangeBanner(silent)
|
||||||
if !util.IsRunningInDocker() && !silent {
|
if !util.IsRunningInDocker() && !silent {
|
||||||
util.CheckForUpdate()
|
util.CheckForUpdate()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,11 @@ func CheckForUpdate() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DisplayAptInstallationChangeBanner() {
|
func DisplayAptInstallationChangeBanner(isSilent bool) {
|
||||||
|
if isSilent {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if runtime.GOOS == "linux" {
|
if runtime.GOOS == "linux" {
|
||||||
_, err := exec.LookPath("apt-get")
|
_, err := exec.LookPath("apt-get")
|
||||||
isApt := err == nil
|
isApt := err == nil
|
||||||
|
|||||||
Reference in New Issue
Block a user