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 <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-08-24 11:06:28 +01:00
parent 54518101f0
commit 677bf96dff

View File

@ -24,11 +24,10 @@ RUN apk add \
tar \ tar \
xz \ xz \
xz-dev \ xz-dev \
zlib-dev && \ zlib-dev
# libunwind-dev pkg is missed from arm64 now, below statement will be removed if the pkg is available. # libunwind-dev pkg is missed from arm64 now, below statement will be removed if the pkg is available.
if [ $(uname -m) == x86_64 ]; then \ RUN [ $(uname -m) == x86_64 ] && apk add libunwind-dev || true
apk add libunwind-dev; \
fi
ARG KERNEL_VERSION ARG KERNEL_VERSION
ARG KERNEL_SERIES ARG KERNEL_SERIES