Skip to content

Commit cacbd88

Browse files
authored
fix: 错误删除了sdk的目录
1 parent 6c251a2 commit cacbd88

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,6 @@ func commands() []cli.Command {
172172

173173
// Copy the jdk files to the installation directory
174174
temJavaHome := getJavaHome(jdktempfile)
175-
if file.Exists(temJavaHome) {
176-
err := os.RemoveAll(temJavaHome)
177-
if err != nil {
178-
panic(err)
179-
}
180-
}
181175
err = os.Rename(temJavaHome, filepath.Join(config.store, v))
182176
if err != nil {
183177
return fmt.Errorf("unzip failed: %w", err)

0 commit comments

Comments
 (0)