CI: build repochecker and generate repochecker.version
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
nemunaire 2020-11-13 15:15:37 +01:00
parent 3bc8f0bf95
commit 38c18ef1aa
3 changed files with 58 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import (
"net/http"
)
const version = 0
const version = 9
func init() {
go checkUpdate()
@ -24,7 +24,7 @@ func checkUpdate() {
var v int
if err := dec.Decode(&v); err == io.EOF || err == nil {
if v > version {
log.Println("Your repochecker version is outdated, please update it:\n wget https://srs.nemunai.re/repochecker")
log.Println("Your repochecker version is outdated, please update it:\n https://srs.nemunai.re/fic-binaries/")
}
}
}