need to check ccp-qemu-img

This commit is contained in:
Edison Su 2014-08-12 14:47:02 -07:00
parent cb9319d3d8
commit f30fc6b673

View File

@ -33,10 +33,16 @@ qemu_img="cloud-qemu-img"
which $qemu_img >& /dev/null
if [ $? -gt 0 ]
then
which qemu-img >& /dev/null
which ccp-qemu-img >& /dev/null
if [ $? -eq 0 ]
then
qemu_img="ccp-qemu-img"
else
which qemu-img >& /dev/null
if [ $? -eq 0 ]
then
qemu_img="qemu-img"
fi
fi
fi