mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
contrib/pacdiff: error if diffprog is not found
FS#35936 Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
fb0f880f0a
commit
c69d71d55b
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user