remove: unnecesary code

This commit is contained in:
iff 2023-07-31 01:23:45 +02:00
parent 54b81e0e0f
commit 6bd55fb316

View file

@ -50,15 +50,11 @@ pub fn find_last_command(shell: &str) -> String {
}
pub fn command_output(shell: &str, command: &str) -> String {
println!("Running command: {}", command);
let output = std::process::Command::new(shell)
.arg("-c")
.arg(command)
.stderr(std::process::Stdio::piped())
.spawn()
.expect("failed to execute process")
.wait_with_output()
.expect("failed to wait on process");
.output()
.expect("failed to execute process");
String::from_utf8_lossy(&output.stderr)
.to_string()