fix(updater): cannot update in dev mode (#31)

This commit is contained in:
VERSE
2026-07-04 22:21:17 +07:00
committed by GitHub
parent 2ef3c90819
commit 6b98455957
+1 -1
View File
@@ -232,7 +232,7 @@ var updateCmd = &cobra.Command{
return return
} }
if !IsNewer(Version, latest) { if Version != "dev" && Version != "" && !IsNewer(Version, latest) {
fmt.Printf("\033[32m[IRIS] already up to date (%s)\033[0m\n", Version) fmt.Printf("\033[32m[IRIS] already up to date (%s)\033[0m\n", Version)
// clear seen_version so the notification doesn't show again // clear seen_version so the notification doesn't show again
state := config.LoadState() state := config.LoadState()