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 a8b52ea commit f0c0641Copy full SHA for f0c0641
arduino/cores/tools.go
@@ -106,7 +106,11 @@ func (tool *Tool) String() string {
106
107
// IsInstalled returns true if the ToolRelease is installed
108
func (tr *ToolRelease) IsInstalled() bool {
109
- return tr.InstallDir != nil
+ if tr.InstallDir == nil {
110
+ return false
111
+ }
112
+ dirContent, _ := tr.InstallDir.ReadDir()
113
+ return dirContent.Len() != 0
114
}
115
116
func (tr *ToolRelease) String() string {
0 commit comments