From d6ee73f94ff7c83c900acf9a12507df5be3a2b82 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Sun, 30 Oct 2011 19:40:38 -0700 Subject: [PATCH] blow up if CACHEDIR doesn't exist --- tools/get_uec_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/get_uec_image.sh b/tools/get_uec_image.sh index b903ad7608..526fb44613 100755 --- a/tools/get_uec_image.sh +++ b/tools/get_uec_image.sh @@ -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