From 677bf96dff6d11ad1f11c164b06d168777868449 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Thu, 24 Aug 2017 11:06:28 +0100 Subject: [PATCH] kernel: Fix warning about empty continuation Without this change, recent Docker build produce this warning: [WARNING]: Empty continuation line found in: RUN apk add xz xz-dev zlib-dev && if [ $(uname -m) == x86_64 ]; then apk add libunwind-dev; fi [WARNING]: Empty continuation lines will become errors in a future release. Signed-off-by: Rolf Neugebauer --- kernel/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/Dockerfile b/kernel/Dockerfile index 2775e6520..6404e3427 100644 --- a/kernel/Dockerfile +++ b/kernel/Dockerfile @@ -24,11 +24,10 @@ RUN apk add \ tar \ xz \ xz-dev \ - zlib-dev && \ + zlib-dev + # libunwind-dev pkg is missed from arm64 now, below statement will be removed if the pkg is available. - if [ $(uname -m) == x86_64 ]; then \ - apk add libunwind-dev; \ - fi +RUN [ $(uname -m) == x86_64 ] && apk add libunwind-dev || true ARG KERNEL_VERSION ARG KERNEL_SERIES