fix: 修改退出代码为42,以符合程序约定

This commit is contained in:
Akizon77
2025-05-16 21:09:13 +08:00
parent d64c11eab1
commit c60c811119

View File

@@ -62,6 +62,6 @@ func CheckAndUpdate() error {
// return fmt.Errorf("failed to restart program: %v", err) // return fmt.Errorf("failed to restart program: %v", err)
// } // }
fmt.Printf("Successfully updated to version %s\n", latest.Version) fmt.Printf("Successfully updated to version %s\n", latest.Version)
os.Exit(0) os.Exit(42)
return nil return nil
} }