fix version upgrade

This commit is contained in:
cupcakearmy 2021-04-17 17:41:53 +02:00
parent a5471efa21
commit e671780e54
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ func Upgrade(restic bool) error {
if err != nil {
return err
}
if current.GT(latest) {
if current.LT(latest) {
downloadAndInstallAsset(body, "autorestic")
colors.Success.Println("Updated autorestic")
} else {

View File

@ -12,7 +12,7 @@ import (
"github.com/spf13/viper"
)
const VERSION = "1.0.1"
const VERSION = "1.0.0"
var CI bool = false
var VERBOSE bool = false