Prevent roc format from reading $PWD when --stdin or --stdout options given

This commit is contained in:
Michael Pfeifer 2024-01-24 23:48:54 +01:00
parent 8e0e48e0bb
commit 390808eb12
No known key found for this signature in database
GPG key ID: 97E1DEF12B1B8486
2 changed files with 3 additions and 1 deletions

View file

@ -287,6 +287,7 @@ fn main() -> io::Result<()> {
values.push(os_string.to_owned());
}
}
None if from_stdin || to_stdout => {}
None => {
let mut os_string_values: Vec<OsString> = Vec::new();