aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-15 06:11:41 -0300
committerEuAndreh <eu@euandre.org>2025-05-15 06:11:41 -0300
commit4e3be1144e16d7af088c58907d0407cb7c3ed040 (patch)
tree43e4afdf1bc8822e9d27439e603a53f80a1353c4
parentetc/sh/rc: Separate -Wmissing-prototypes to $CCFLAGS (diff)
downloaddotfiles-4e3be1144e16d7af088c58907d0407cb7c3ed040.tar.gz
dotfiles-4e3be1144e16d7af088c58907d0407cb7c3ed040.tar.xz
etc/sh/rc(idiff): Do not call less(1) if output is empty
Diffstat (limited to '')
-rw-r--r--etc/sh/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index 96e61ae..340ab62 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -438,7 +438,7 @@ f() {
}
idiff() {
- diff -U10 --color=always "$1" "$2" | less
+ diff -U10 --color=always "$1" "$2" | ifne less -R
}