From 27abe81e97c519b073927ecabaeee9b64982785f Mon Sep 17 00:00:00 2001 From: quiquelhappy Date: Sun, 15 Aug 2021 13:52:10 +0200 Subject: [PATCH] dont print old version on upgrade --- src/installer/unixInstaller.go | 3 +-- src/installer/windowsInstaller.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/installer/unixInstaller.go b/src/installer/unixInstaller.go index 5d0b587..88c08e6 100644 --- a/src/installer/unixInstaller.go +++ b/src/installer/unixInstaller.go @@ -3,7 +3,6 @@ package installer import ( "fmt" "github.com/fatih/color" - "github.com/grifpkg/cli/globals" "github.com/kardianos/osext" "github.com/segmentio/ksuid" "io/ioutil" @@ -53,5 +52,5 @@ func InstallUnix(){ exec.Command("chmod", "+x", "/usr/local/bin/grif").Run() // install notice - fmt.Fprintf(color.Output, "%s grif %s has been installed\n", color.HiGreenString("i"), color.CyanString(globals.Version)) + fmt.Fprintf(color.Output, "%s grif has been installed\n", color.HiGreenString("i")) } \ No newline at end of file diff --git a/src/installer/windowsInstaller.go b/src/installer/windowsInstaller.go index 607dbb2..e626ef1 100644 --- a/src/installer/windowsInstaller.go +++ b/src/installer/windowsInstaller.go @@ -3,7 +3,6 @@ package installer import ( "fmt" "github.com/fatih/color" - "github.com/grifpkg/cli/globals" "github.com/kardianos/osext" "github.com/segmentio/ksuid" "io/ioutil" @@ -38,7 +37,7 @@ func InstallWindows(){ createInstallScript(installPath, randomId) exec.Command(installPath+"install.bat").Run() - fmt.Fprintf(color.Output, "%s grif %s has been installed\n", color.HiGreenString("i"), color.CyanString(globals.Version)) + fmt.Fprintf(color.Output, "%s grif has been installed\n", color.HiGreenString("i")) } func createInstallScript(installPath string, id string){