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
+5 -1
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