Skip to content

Commit 10793ac

Browse files
author
moqsien
committed
fix
1 parent 2f397ce commit 10793ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/installer/install/executable.go

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func InstallVSCode(pkgFilePath, installDir string) (err error) {
8181
case gutils.Darwin:
8282
err = utils.Extract(pkgFilePath, cnf.GetTempDir())
8383
if err != nil {
84+
gprint.PrintError("extract vscode failed: %v", err)
85+
os.RemoveAll(pkgFilePath)
8486
return
8587
}
8688
appName := "Visual Studio Code.app"

0 commit comments

Comments
 (0)