Fix conditional setting of stdin handle on Windows (#3379)

* Revert 3121353c6a

* Switch to conditional compilation

* Run formatter

* Switch from conditional compilation to compile-time bool
imgbot
Kyle L. Davis 2 years ago committed by GitHub
parent 7559b77d53
commit 21f2affa16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4559,7 +4559,7 @@ fn shell_impl(
.stdout(Stdio::piped())
.stderr(Stdio::piped());
if input.is_some() {
if input.is_some() || cfg!(windows) {
process.stdin(Stdio::piped());
}

Loading…
Cancel
Save