From 52aa9028009057473a4ab875eb06d9e664d25a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Pottier?= Date: Sat, 1 Jun 2019 19:24:02 -0700 Subject: [PATCH] Added --create-dirs to Dockerfile.kconfig to fix a crash when the sources/ directory does not exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Loïc Pottier --- kernel/Dockerfile.kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Dockerfile.kconfig b/kernel/Dockerfile.kconfig index e7739a3dc..8f3cdef01 100644 --- a/kernel/Dockerfile.kconfig +++ b/kernel/Dockerfile.kconfig @@ -25,7 +25,7 @@ RUN set -e && \ MAJOR=v${MAJOR}.x && \ echo "Downloading/Unpacking $VERSION" && \ KERNEL_SOURCE=https://www.kernel.org/pub/linux/kernel/${MAJOR}/linux-${VERSION}.tar.xz && \ - [ -f sources/linux-${VERSION}.tar.xz ] || curl -fSLo sources/linux-${VERSION}.tar.xz ${KERNEL_SOURCE} && \ + [ -f sources/linux-${VERSION}.tar.xz ] || curl -fSLo sources/linux-${VERSION}.tar.xz --create-dirs ${KERNEL_SOURCE} && \ bsdtar xf sources/linux-${VERSION}.tar.xz; \ done