pacman-optimize: add check for diff/diffutils

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-10-01 06:29:32 -05:00
parent 4853a4aad9
commit f5f4650de7

View File

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