mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 08:40:20 +00:00
🚸 agent: exit code
This commit is contained in:
1 parent
2ae832f509
commit
13e8ea76ed
1 file changed
+1
-3
+1
-3
@@ -47,8 +47,6 @@ var (
|
||||
updateCh = make(chan struct{}, 0)
|
||||
)
|
||||
|
||||
const agentUpgrade = 55
|
||||
|
||||
func doSelfUpdate() {
|
||||
defer func() {
|
||||
time.Sleep(time.Minute * 20)
|
||||
@@ -66,7 +64,7 @@ func doSelfUpdate() {
|
||||
log.Println("Current binary is the latest version", version)
|
||||
} else {
|
||||
log.Println("Successfully updated to version", latest.Version)
|
||||
os.Exit(agentUpgrade)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user