gnomeos-make-image.sh: Check for some dependencies before we run

This commit is contained in:
Colin Walters 2011-10-26 14:59:45 -04:00
parent 12314e4adf
commit 6f00173ff2

View File

@ -24,6 +24,15 @@ set -x
SRCDIR=`dirname $0`
WORKDIR=`pwd`
DEPENDS="debootstrap qemu-img"
for x in $DEPENDS; do
if ! command -v $x; then
echo "Couldn't find required dependency $x";
exit 1
fi
done
OSTREE=${OSTREE:-ostree}
case `uname -p` in