Browse code

blow up if CACHEDIR doesn't exist

Jesse Andrews authored on 2011/10/31 11:40:38
Showing 1 changed files
... ...
@@ -94,7 +94,7 @@ NBD_DEV=`basename $NBD`
94 94
 # Get the UEC image
95 95
 UEC_NAME=$DIST_NAME-server-cloudimg-amd64
96 96
 if [ ! -e $CACHEDIR/$UEC_NAME-disk1.img ]; then
97
-    (cd $CACHEDIR; wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
97
+    (cd $CACHEDIR && wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
98 98
 
99 99
 
100 100
     # Connect to nbd and wait till it is ready