File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ func NotifyNewVersionIsAvailable(latestVersion string) {
80
80
// shouldCheckForUpdate return true if it actually makes sense to check for new updates,
81
81
// false in all other cases.
82
82
func shouldCheckForUpdate (currentVersion * semver.Version ) bool {
83
- if strings .Contains (currentVersion .String (), "git" ) {
83
+ if strings .Contains (currentVersion .String (), "git-snapshot" ) || strings . Contains ( currentVersion . String (), "nightly " ) {
84
84
// This is a dev build, no need to check for updates
85
85
return false
86
86
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func NewCommand() *cobra.Command {
43
43
}
44
44
45
45
func run (cmd * cobra.Command , args []string ) {
46
- if strings .Contains (globals .VersionInfo .VersionString , "git-snapshot" ) {
46
+ if strings .Contains (globals .VersionInfo .VersionString , "git-snapshot" ) || strings . Contains ( globals . VersionInfo . VersionString , "nightly" ) {
47
47
// We're using a development version, no need to check if there's a
48
48
// new release available
49
49
feedback .Print (globals .VersionInfo )
You can’t perform that action at this time.
0 commit comments