Skip to content

Commit

Permalink
dont print old version on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
quiquelhappy committed Aug 15, 2021
1 parent 3a74f10 commit 27abe81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/installer/unixInstaller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"))
}
3 changes: 1 addition & 2 deletions src/installer/windowsInstaller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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){
Expand Down

0 comments on commit 27abe81

Please sign in to comment.