From 933f837f6488813e8c3fcac3725c340b226d88c4 Mon Sep 17 00:00:00 2001 From: jon4hz Date: Fri, 3 Mar 2023 23:52:01 +0100 Subject: [PATCH] feat: option to disable update check --- cli/packages/util/check-for-update.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/packages/util/check-for-update.go b/cli/packages/util/check-for-update.go index 28a1890c82..87832a9cea 100644 --- a/cli/packages/util/check-for-update.go +++ b/cli/packages/util/check-for-update.go @@ -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