From cacbd88c0baa35aa0e7a3a35d5507cd54e31b530 Mon Sep 17 00:00:00 2001 From: "YSTYLE-L.X.Y" Date: Fri, 30 Jun 2023 20:59:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=94=99=E8=AF=AF=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=BA=86sdk=E7=9A=84=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.go b/main.go index 73460e5..56c28b7 100644 --- a/main.go +++ b/main.go @@ -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)