mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
pacman-optimize: add check for diff/diffutils
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
4853a4aad9
commit
f5f4650de7
@ -86,6 +86,11 @@ if [ "$1" != "" ]; then
|
|||||||
dbroot="$1"
|
dbroot="$1"
|
||||||
fi
|
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
|
# make sure pacman isn't running
|
||||||
if [ -f "$lockfile" ]; then
|
if [ -f "$lockfile" ]; then
|
||||||
die "$(gettext "Pacman lock file was found. Cannot run while pacman is running.")"
|
die "$(gettext "Pacman lock file was found. Cannot run while pacman is running.")"
|
||||||
|
Loading…
Reference in New Issue
Block a user