blow up if CACHEDIR doesn't exist

This commit is contained in:
Jesse Andrews 2011-10-30 19:40:38 -07:00
parent 2b7d221e6c
commit d6ee73f94f

View file

@ -94,7 +94,7 @@ NBD_DEV=`basename $NBD`
# Get the UEC image
UEC_NAME=$DIST_NAME-server-cloudimg-amd64
if [ ! -e $CACHEDIR/$UEC_NAME-disk1.img ]; then
(cd $CACHEDIR; wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
(cd $CACHEDIR && wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
# Connect to nbd and wait till it is ready