[pacman-dev] [PATCH] contrib/pacdiff: error if diffprog is not found
14 Oct
2013
14 Oct
'13
6:12 a.m.
FS#35936 Signed-off-by: Allan McRae <allan@archlinux.org> --- contrib/pacdiff.sh.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/pacdiff.sh.in b/contrib/pacdiff.sh.in index 711763b..6e70fee 100644 --- a/contrib/pacdiff.sh.in +++ b/contrib/pacdiff.sh.in @@ -116,6 +116,11 @@ done m4_include(../scripts/library/term_colors.sh) +if ! type -p $diffprog >/dev/null; then + error "Cannot find the $diffprog binary required for viewing differences." + exit 1 +fi + case $(( USE_FIND + USE_LOCATE + USE_PACDB )) in 0) USE_PACDB=1;; # set the default search option [^1]) error "Only one search option may be used at a time" -- 1.8.4
4091
Age (days ago)
4091
Last active (days ago)
0 comments
1 participants
participants (1)
-
Allan McRae