gnomeos-make-image.sh: Check for some dependencies before we run
This commit is contained in:
parent
12314e4adf
commit
6f00173ff2
|
|
@ -24,6 +24,15 @@ set -x
|
||||||
SRCDIR=`dirname $0`
|
SRCDIR=`dirname $0`
|
||||||
WORKDIR=`pwd`
|
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}
|
OSTREE=${OSTREE:-ostree}
|
||||||
|
|
||||||
case `uname -p` in
|
case `uname -p` in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue