Skip to content

Commit

Permalink
Merge pull request #24 from mah0x211/fix-bug-in-downloaded-file-extra…
Browse files Browse the repository at this point in the history
…ction

Fix bug that downloaded files were extracted in the working directory
  • Loading branch information
mah0x211 authored Aug 26, 2023
2 parents 2846ba8 + b562f9c commit 33ad65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func doInstall(cfg *TargetConfig, item *VerItem, opts []string) {
if err != nil {
printf("failed to extract cached file: %v", err)
}
if dir, err = extractDownloadedFile(dir, url); err != nil {
if dir, err = extractDownloadedFile(tmpdir, url); err != nil {
fatalf("failed to extract downloaded file: %v", err)
}
}
Expand Down

0 comments on commit 33ad65f

Please sign in to comment.