mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-03 15:00:12 +00:00
dont log updates when disabled
This commit is contained in:
parent
0bdf8ad6ce
commit
a8bf670697
@ -20,9 +20,9 @@ steps:
|
|||||||
- apt install build-essential python3-pip curl software-properties-common sed upx -y
|
- apt install build-essential python3-pip curl software-properties-common sed upx -y
|
||||||
- (curl -sL https://deb.nodesource.com/setup_14.x | bash -)
|
- (curl -sL https://deb.nodesource.com/setup_14.x | bash -)
|
||||||
- apt install nodejs
|
- apt install nodejs
|
||||||
- curl -sL https://git.io/goreleaser > goreleaser
|
- curl -sL https://git.io/goreleaser > ../goreleaser
|
||||||
- chmod +x goreleaser
|
- chmod +x ../goreleaser
|
||||||
- ./scripts/version.sh ./goreleaser
|
- ./scripts/version.sh ../goreleaser
|
||||||
- wget https://builds.hrfee.pw/upload.py -P ../
|
- wget https://builds.hrfee.pw/upload.py -P ../
|
||||||
- pip3 install requests
|
- pip3 install requests
|
||||||
- bash -c 'python3 ../upload.py https://builds.hrfee.pw hrfee jfa-go --tag internal=true'
|
- bash -c 'python3 ../upload.py https://builds.hrfee.pw hrfee jfa-go --tag internal=true'
|
||||||
|
@ -467,7 +467,7 @@ func (app *appContext) checkForUpdates() {
|
|||||||
if status != 200 || err != nil {
|
if status != 200 || err != nil {
|
||||||
if err != nil && strings.Contains(err.Error(), "strconv.ParseInt") {
|
if err != nil && strings.Contains(err.Error(), "strconv.ParseInt") {
|
||||||
app.err.Println("No new updates available.")
|
app.err.Println("No new updates available.")
|
||||||
} else {
|
} else if status != -1 { // -1 means updates disabled, we don't need to log it.
|
||||||
app.err.Printf("Failed to get latest tag (%d): %v", status, err)
|
app.err.Printf("Failed to get latest tag (%d): %v", status, err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user