[07/13] support/download: make sure the download folder is created

Message ID 20170704162211.13238-8-maxime.hadjinlian@gmail.com
State Changes Requested
Headers show

Commit Message

Maxime Hadjinlian July 4, 2017, 4:22 p.m.
At the moment, it means that we make sure that BR2_DL_DIR is created, in
the future, it will make sure that BR2_DL_DIR/PKG_NAME/ is created.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
 support/download/dl-wrapper | 1 +
 1 file changed, 1 insertion(+)


diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
index 50c14a2e16..f14a60c173 100755
--- a/support/download/dl-wrapper
+++ b/support/download/dl-wrapper
@@ -50,6 +50,7 @@  main() {
     if [ -z "${output}" ]; then
         error "no output specified, use -o\n"
+    mkdir -p "$(dirname "${output}")"
     # If the output file already exists and:
     # - there's no .hash file: do not download it again and exit promptly