Skip to content

Commit

Permalink
feat: option to disable update check
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Mar 3, 2023
1 parent 7327698 commit 933f837
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/packages/util/check-for-update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 933f837

Please sign in to comment.