From e671780e54e663bdbe7ebb1f8f82689aaa024b82 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sat, 17 Apr 2021 17:41:53 +0200 Subject: [PATCH] fix version upgrade --- internal/bins/bins.go | 2 +- internal/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/bins/bins.go b/internal/bins/bins.go index e67b67a..d6c2134 100644 --- a/internal/bins/bins.go +++ b/internal/bins/bins.go @@ -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 { diff --git a/internal/config.go b/internal/config.go index 5c5fa61..996a1d6 100644 --- a/internal/config.go +++ b/internal/config.go @@ -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