Browse code

Merge pull request #160 from cloudbuilders/mk_cachedir

create the uec cachedir if it doesn't exist.

Jesse Andrews authored on 2011/11/04 06:10:48
Showing 1 changed files
... ...
@@ -114,6 +114,7 @@ trap cleanup SIGHUP SIGINT SIGTERM
114 114
 # Get the UEC image
115 115
 UEC_NAME=$DIST_NAME-server-cloudimg-amd64
116 116
 if [ ! -e $CACHEDIR/$UEC_NAME-disk1.img ]; then
117
+    mkdir -p $CACHEDIR
117 118
     (cd $CACHEDIR && wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
118 119
 fi
119 120