Skip to content

Commit

Permalink
Revert "(ci) fix test"
Browse files Browse the repository at this point in the history
This reverts commit 94cd26a.
  • Loading branch information
kevincobain2000 committed Oct 16, 2023
1 parent ddb42bf commit 4c850a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gobrew.go
Expand Up @@ -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("==> [Success] Upgrade successful")
color.Infoln("Upgrade successful")
}

func (gb *GoBrew) mkDirs(version string) {
Expand Down
3 changes: 1 addition & 2 deletions gobrew_test.go
Expand Up @@ -186,8 +186,7 @@ func TestDoNotUpgradeLatestVersion(t *testing.T) {

gb := NewGoBrewDirectory(tempDir)

binaryDir := filepath.Join(gb.installDir, "bin", "gobrew")

binaryDir := filepath.Join(gb.installDir, "bin")
_ = os.MkdirAll(binaryDir, os.ModePerm)

baseName := "gobrew"
Expand Down

0 comments on commit 4c850a8

Please sign in to comment.