diff --git a/gobrew.go b/gobrew.go index c6cf651..363b389 100644 --- a/gobrew.go +++ b/gobrew.go @@ -554,7 +554,7 @@ func (gb *GoBrew) Upgrade(currentVersion string) { _, err = io.Copy(destination, source) utils.CheckError(err, "==> [Error] Cannot copy file") utils.CheckError(os.Chmod(goBrewFile, 0755), "==> [Error] Cannot set file as executable") - color.Infoln("Upgrade successful") + color.Infoln("==> [Success] Upgrade successful") } func (gb *GoBrew) mkDirs(version string) { diff --git a/gobrew_test.go b/gobrew_test.go index 3e12a86..86744bb 100644 --- a/gobrew_test.go +++ b/gobrew_test.go @@ -186,7 +186,8 @@ func TestDoNotUpgradeLatestVersion(t *testing.T) { gb := NewGoBrewDirectory(tempDir) - binaryDir := filepath.Join(gb.installDir, "bin") + binaryDir := filepath.Join(gb.installDir, "bin", "gobrew") + _ = os.MkdirAll(binaryDir, os.ModePerm) baseName := "gobrew"