diff --git a/version/version.go b/version/version.go index c015a59d7..939f0d458 100644 --- a/version/version.go +++ b/version/version.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "net/http" + "os" "strings" "github.com/blang/semver" @@ -27,7 +28,7 @@ func PrintVersion(c *cli.Context) { out.WriteString(fmt.Sprintf("%s %s", c.App.Name, c.App.Version)) - if c.Bool("disable-version-check") { + if c.Bool("disable-version-check") || os.Getenv("SOPS_DISABLE_VERSION_CHECK") != "" { out.WriteString("\n") } else { upstreamVersion, upstreamURL, err := RetrieveLatestReleaseVersion()