chore: Fix on the rsync not having stdout. (#1911)

This commit is contained in:
J M
2022-11-07 03:06:54 -07:00
committed by Aiden McClelland
parent 3e7b184ab4
commit bc23129759

View File

@@ -48,12 +48,13 @@ impl Rsync {
cmd.arg("--ignore-existing");
}
let mut command = cmd
.arg("-a")
.arg("-ac")
.arg("--info=progress2")
.arg(src.as_ref())
.arg(dst.as_ref())
.kill_on_drop(true)
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.spawn()?;
let cmd_stdout = command.stdout.take().unwrap();
let mut cmd_stderr = command.stderr.take().unwrap();