We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d06324b commit edfbcadCopy full SHA for edfbcad
internal/tools/tool/base.go
@@ -61,14 +61,18 @@ func (t *Base) IsInstalled() bool {
61
panic("exeName is empty")
62
}
63
64
+ t.installed = new(bool)
65
+
66
t.exeFullPath, t.lookPathError = exec.LookPath(t.exeName)
67
68
if t.lookPathError == nil {
- t.installed = new(bool)
69
*t.installed = true
70
+ } else {
71
+ *t.installed = false
72
73
74
return *t.installed
75
76
77
78
func (t *Base) HowToInstall() string {
0 commit comments