Revert "fix force output stdout and stderr."

This reverts commit 77a7b7679a.
This commit is contained in:
licsber 2024-09-29 17:36:41 +08:00
parent 77a7b7679a
commit 67362384ba
3 changed files with 3 additions and 5 deletions

2
Cargo.lock generated
View File

@ -4,4 +4,4 @@ version = 3
[[package]]
name = "unzip-all"
version = "0.2.1"
version = "0.2.0"

View File

@ -1,6 +1,6 @@
[package]
name = "unzip-all"
version = "0.2.1"
version = "0.2.0"
authors = ["licsber <admin@licsber.site>"]
edition = "2021"

View File

@ -1,6 +1,6 @@
use std::io;
use std::path::Path;
use std::process::{Command, Stdio};
use std::process::Command;
pub fn unar_file(path: &Path) -> io::Result<()> {
println!("UNAR: {}", path.display());
@ -16,8 +16,6 @@ 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 {