contrib/pacdiff: error if diffprog is not found

FS#35936

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2013-10-14 16:12:00 +10:00
parent fb0f880f0a
commit c69d71d55b
1 changed files with 5 additions and 0 deletions

View File

@ -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"