File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ package homebrew
16
16
17
17
import (
18
18
"bytes"
19
- "fmt"
20
19
"os"
21
20
"os/exec"
22
21
"path/filepath"
@@ -48,7 +47,7 @@ func NewChecker(fileSystem afero.Fs) (*Checker, error) {
48
47
return & Checker {fs : fileSystem , path : filePath }, nil
49
48
}
50
49
51
- func formulaName (tool string ) string {
50
+ func FormulaName (tool string ) string {
52
51
if strings .Contains (tool , "atlas" ) {
53
52
return atlasFormulaName
54
53
}
@@ -63,7 +62,7 @@ func (s Checker) IsHomebrew() bool {
63
62
return strings .HasPrefix (h .ExecutablePath , h .FormulaPath )
64
63
}
65
64
66
- formula := formulaName (config .BinName ())
65
+ formula := FormulaName (config .BinName ())
67
66
cmdResult := new (bytes.Buffer )
68
67
cmd := exec .Command ("brew" , "--prefix" , formula )
69
68
@@ -83,8 +82,6 @@ func (s Checker) IsHomebrew() bool {
83
82
84
83
h .FormulaPath , err = filepath .EvalSymlinks (strings .TrimSpace (cmdResult .String ()))
85
84
if err != nil {
86
- fmt .Println ("formula" )
87
- fmt .Println (err )
88
85
return false
89
86
}
90
87
_ = s .save (h )
You can’t perform that action at this time.
0 commit comments