HIGUCHI Yuta
Committed by Gerrit Code Review

Create Downloads directory on demand

Change-Id: I4a2a21a307a76c88d7f6272a192a073600e70562
...@@ -59,7 +59,7 @@ if [ ! -d $KARAF_ROOT ]; then ...@@ -59,7 +59,7 @@ if [ ! -d $KARAF_ROOT ]; then
59 # Check if Apache Karaf bits are available and if not, fetch them. 59 # Check if Apache Karaf bits are available and if not, fetch them.
60 if [ ! -f $KARAF_TAR ]; then 60 if [ ! -f $KARAF_TAR ]; then
61 echo "Downloading $KARAF_TAR..." 61 echo "Downloading $KARAF_TAR..."
62 - curl -sL http://downloads.onosproject.org/third-party/apache-karaf-$KARAF_VERSION.tar.gz > $KARAF_TAR 62 + curl -sL http://downloads.onosproject.org/third-party/apache-karaf-$KARAF_VERSION.tar.gz --create-dirs -o $KARAF_TAR
63 fi 63 fi
64 [ ! -f $KARAF_ZIP -a ! -f $KARAF_TAR ] && \ 64 [ ! -f $KARAF_ZIP -a ! -f $KARAF_TAR ] && \
65 echo "Apache Karaf bits $KARAF_ZIP or $KARAF_TAR not found" && exit 1 65 echo "Apache Karaf bits $KARAF_ZIP or $KARAF_TAR not found" && exit 1
......