Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Jan 1, 2025
1 parent fbd3d4e commit 3db5b7d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/tui/cliui/sdk_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ func (v *SDKSearcher) GetSDKInstalledByCondaForge(sdkInstalledByVMR []string) []
}
dirs, _ := os.ReadDir(cnf.GetVersionsDir())
for _, d := range dirs {
sdkName := strings.Split(d.Name(), "_")[0]
nList := strings.Split(d.Name(), "_")
sdkName := ""
if len(nList) < 2 {
sdkName = strings.Join(nList, "_")
} else {
sdkName = strings.Join(nList[:len(nList)-1], "_")
}
if _, ok := dedup[sdkName]; ok {
continue
}
Expand Down

0 comments on commit 3db5b7d

Please sign in to comment.