forked from extern/nushell
Fix do
swallowing all output when ignoring errors (#7859)
https://github.com/nushell/nushell/pull/7204#issuecomment-1404363845
This commit is contained in:
parent
f9e99048c4
commit
9d6d43ee55
@ -218,7 +218,7 @@ impl Command for Do {
|
||||
metadata,
|
||||
trim_end_newline,
|
||||
}),
|
||||
Ok(PipelineData::Value(..)) | Err(_) if ignore_shell_errors => {
|
||||
Ok(PipelineData::Value(Value::Error { .. }, ..)) | Err(_) if ignore_shell_errors => {
|
||||
Ok(PipelineData::empty())
|
||||
}
|
||||
r => r,
|
||||
|
Loading…
Reference in New Issue
Block a user