Co-authored-by: dan <dan@localhost.localdomain>
This commit is contained in:
parent
7d67fc77b5
commit
fa63493cee
@ -132,8 +132,7 @@ impl CommandConfigurator for StdCommandConfigurator {
|
||||
Ok(cmd.spawn()?)
|
||||
}
|
||||
InputLocation::StdIn => {
|
||||
self.command.stdin(Stdio::piped()).spawn()?;
|
||||
let mut handle = self.command.spawn()?;
|
||||
let mut handle = self.command.stdin(Stdio::piped()).spawn()?;
|
||||
let mut stdin = handle.stdin.take().unwrap();
|
||||
if let Err(err) = stdin.write_all(input.target_bytes().as_slice()) {
|
||||
if err.kind() != std::io::ErrorKind::BrokenPipe {
|
||||
|
Loading…
x
Reference in New Issue
Block a user