From f5f4650de7e1e12c43eec6e3bf72e77540a2b493 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 1 Oct 2007 06:29:32 -0500 Subject: pacman-optimize: add check for diff/diffutils Signed-off-by: Dan McGee --- scripts/pacman-optimize.sh.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/pacman-optimize.sh.in b/scripts/pacman-optimize.sh.in index 83c56a77..2d7fa9bf 100644 --- a/scripts/pacman-optimize.sh.in +++ b/scripts/pacman-optimize.sh.in @@ -86,6 +86,11 @@ if [ "$1" != "" ]; then dbroot="$1" fi +# make sure diff is installed +if ! type diff >/dev/null 2>&1; then + die "$(gettext "diff tool was not found, please install diffutils.")" +fi + # make sure pacman isn't running if [ -f "$lockfile" ]; then die "$(gettext "Pacman lock file was found. Cannot run while pacman is running.")" -- cgit v1.2.3-70-g09d2