Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 4a920f6

Browse files
committed
fix archive extract dir
1 parent daa981b commit 4a920f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/downloader.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ impl Downloader {
151151
}
152152

153153
if options.extract_archive {
154-
archive::extract_archive(output_path, Path::new(".")).await?;
154+
let extract_dir = output_path.parent().unwrap_or_else(|| Path::new("."));
155+
archive::extract_archive(output_path, extract_dir).await?;
155156
}
156157

157158
Ok(filename)

0 commit comments

Comments
 (0)