Skip to content

Commit

Permalink
🐛 Fix windows distribution lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Aug 5, 2024
1 parent 3516dd7 commit fdeed2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/installers.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ func downloadAndInstallIDE(opts *QodanaOptions, baseDir string, spinner *pterm.S
fileExt := filepath.Ext(fileName)
installDir := filepath.Join(baseDir, strings.TrimSuffix(fileName, fileExt))
if _, err := os.Stat(installDir); err == nil {
if runtime.GOOS == "windows" {
if dirs, err := filepath.Glob(filepath.Join(installDir, "*")); err == nil && len(dirs) == 1 {
installDir = dirs[0]
}
}
log.Debugf("IDE already installed to %s, skipping download", installDir)
return installDir
}
Expand Down

0 comments on commit fdeed2a

Please sign in to comment.