summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/domain/imag-diary/src/list.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/domain/imag-diary/src/list.rs b/bin/domain/imag-diary/src/list.rs
index 3d07f6f..2719d11 100644
--- a/bin/domain/imag-diary/src/list.rs
+++ b/bin/domain/imag-diary/src/list.rs
@@ -57,7 +57,9 @@ pub fn list(rt: &Runtime) {
.for_each(|id| {
let _ = rt.report_touched(&id).unwrap_or_exit();
- writeln!(rt.stdout(), "{}", id).to_exit_code().unwrap_or_exit()
+ if !rt.output_is_pipe() {
+ writeln!(rt.stdout(), "{}", id).to_exit_code().unwrap_or_exit()
+ }
});
}