mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 19:28:09 +00:00
feat: option to disable update check
This commit is contained in:
@@ -14,6 +14,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func CheckForUpdate() {
|
func CheckForUpdate() {
|
||||||
|
if checkEnv := os.Getenv("INFISICAL_DISABLE_UPDATE_CHECK"); checkEnv != "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
latestVersion, err := getLatestTag("Infisical", "infisical")
|
latestVersion, err := getLatestTag("Infisical", "infisical")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// do nothing and continue
|
// do nothing and continue
|
||||||
|
|||||||
Reference in New Issue
Block a user