diff options
author | Allan McRae <allan@archlinux.org> | 2013-10-14 08:12:00 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-15 04:40:53 +0200 |
commit | c69d71d55bfab10c1d021a0db3efe793250f687a (patch) | |
tree | ed07825fc207dee10f853d617639c88c3fc2e999 /contrib | |
parent | fb0f880f0a19d0b1b0630472a8fce83fde9451f3 (diff) | |
download | pacman-c69d71d55bfab10c1d021a0db3efe793250f687a.tar.gz pacman-c69d71d55bfab10c1d021a0db3efe793250f687a.tar.xz |
contrib/pacdiff: error if diffprog is not found
FS#35936
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pacdiff.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/pacdiff.sh.in b/contrib/pacdiff.sh.in index 711763b0..6e70feeb 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" |