summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-01 06:29:32 -0500
committerDan McGee <dan@archlinux.org>2007-10-08 20:46:55 -0500
commitf5f4650de7e1e12c43eec6e3bf72e77540a2b493 (patch)
treecec7a27055f2b3d5d44e09c5337744d622bc9698 /scripts
parent4853a4aad97fe36f9237ffb7356201adab507a1c (diff)
pacman-optimize: add check for diff/diffutils
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pacman-optimize.sh.in5
1 files changed, 5 insertions, 0 deletions
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.")"