Skip to content

Commit

Permalink
fix: 错误删除了sdk的目录
Browse files Browse the repository at this point in the history
  • Loading branch information
ystyle authored Jun 30, 2023
1 parent 6c251a2 commit cacbd88
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,6 @@ func commands() []cli.Command {

// Copy the jdk files to the installation directory
temJavaHome := getJavaHome(jdktempfile)
if file.Exists(temJavaHome) {
err := os.RemoveAll(temJavaHome)
if err != nil {
panic(err)
}
}
err = os.Rename(temJavaHome, filepath.Join(config.store, v))
if err != nil {
return fmt.Errorf("unzip failed: %w", err)
Expand Down

0 comments on commit cacbd88

Please sign in to comment.