feat: option to disable update check

This commit is contained in:
jon4hz
2023-03-03 23:52:01 +01:00
parent 7327698305
commit 933f837f64

View File

@@ -14,6 +14,9 @@ import (
)
func CheckForUpdate() {
if checkEnv := os.Getenv("INFISICAL_DISABLE_UPDATE_CHECK"); checkEnv != "" {
return
}
latestVersion, err := getLatestTag("Infisical", "infisical")
if err != nil {
// do nothing and continue