Skip to content

Commit 5a54e09

Browse files
Recover from failed builtin tools installation
1 parent 5f03cb9 commit 5a54e09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: arduino/cores/tools.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ func (tool *Tool) String() string {
106106

107107
// IsInstalled returns true if the ToolRelease is installed
108108
func (tr *ToolRelease) IsInstalled() bool {
109-
return tr.InstallDir != nil
109+
if tr.InstallDir == nil {
110+
return false
111+
}
112+
dirContent, _ := tr.InstallDir.ReadDir()
113+
return dirContent.Len() != 0
110114
}
111115

112116
func (tr *ToolRelease) String() string {

0 commit comments

Comments
 (0)