mirror of https://github.com/MedzikUser/go-pingbot
chore: disable auto updater if version is dev
This commit is contained in:
parent
fa03e08b28
commit
6af384e731
4
main.go
4
main.go
|
@ -96,6 +96,9 @@ func main() {
|
|||
}
|
||||
|
||||
if config.Toml.AutoUpdate.Enabled {
|
||||
if config.Version == "dev" {
|
||||
log.Warn("You using dev version. Auto Update DISABLED!")
|
||||
} else {
|
||||
wg.Add(1)
|
||||
|
||||
client := updater.Client{
|
||||
|
@ -115,6 +118,7 @@ func main() {
|
|||
}
|
||||
|
||||
go client.AutoUpdater()
|
||||
}
|
||||
} else {
|
||||
log.Warn("Auto Update -> Disabled")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue