[pacman-dev] [PATCH] pacdiff: do not require DIFFPROG for -o/--output

Evangelos Foutras evangelos at foutrelis.com
Wed Nov 25 10:58:39 UTC 2015


Signed-off-by: Evangelos Foutras <evangelos at foutrelis.com>
---
 contrib/pacdiff.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/pacdiff.sh.in b/contrib/pacdiff.sh.in
index 90eb3cc..a4faba2 100644
--- a/contrib/pacdiff.sh.in
+++ b/contrib/pacdiff.sh.in
@@ -118,7 +118,7 @@ done
 
 m4_include(../scripts/library/term_colors.sh)
 
-if ! type -p ${diffprog%% *} >/dev/null; then
+if ! type -p ${diffprog%% *} >/dev/null && (( ! OUTPUTONLY )); then
 	error "Cannot find the $diffprog binary required for viewing differences."
 	exit 1
 fi
-- 
2.6.2


More information about the pacman-dev mailing list