mirror of
https://github.com/activecm/rita
synced 2026-06-08 13:02:45 +00:00
fixed update check error
Co-Authored-By: Naomi Kramer <naomiagoddard@gmail.com>
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ func CheckForUpdate(cCtx *cli.Context, afs afero.Fs) error {
|
||||
|
||||
// check for update if version is set
|
||||
if cfg.UpdateCheckEnabled && currentVersion != "" {
|
||||
newer, latestVersion, err := util.CheckForNewerVersion(github.NewClient(nil), "v0.0.0")
|
||||
newer, latestVersion, err := util.CheckForNewerVersion(github.NewClient(nil), currentVersion)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error checking for newer version of RITA: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user