diff --git a/Cargo.lock b/Cargo.lock index f1b3687..13976b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,4 +4,4 @@ version = 3 [[package]] name = "unzip-all" -version = "0.2.0" +version = "0.2.1" diff --git a/Cargo.toml b/Cargo.toml index c5df0e3..c025fe8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "unzip-all" -version = "0.2.0" +version = "0.2.1" authors = ["licsber "] edition = "2021" diff --git a/src/unar.rs b/src/unar.rs index b4dd45e..b99b8f6 100644 --- a/src/unar.rs +++ b/src/unar.rs @@ -1,6 +1,6 @@ use std::io; use std::path::Path; -use std::process::Command; +use std::process::{Command, Stdio}; pub fn unar_file(path: &Path) -> io::Result<()> { println!("UNAR: {}", path.display()); @@ -16,6 +16,8 @@ pub fn unar_file(path: &Path) -> io::Result<()> { .current_dir(parent_dir) .arg("-s") // -force-skip: skip if exists .arg(filename) + .stdout(Stdio::inherit()) + .stderr(Stdio::inherit()) .spawn()?.wait_with_output(); match output {