Skip to content

Commit 4919452

Browse files
authored
Put if statement dockerfile over multiple lines
1 parent bc1010a commit 4919452

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/docker/Dockerfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ RUN ARCH=$(uname -m) \
2929
ENV PATH /opt/cmake/bin:$PATH
3030

3131
# As with CMake install a later version of Ninja than waht 18.04 has.
32-
# FIXME as part of PR. Write if statement over multiple lines
3332
RUN ARCH=$(uname -m) \
34-
&& if [ "$ARCH" = "aarch64" ]; then curl -sSLO https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux-aarch64.zip ; unzip ninja-linux-aarch64.zip; else curl -sSLO https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip ; unzip ninja-linux.zip; fi \
33+
&& if [ "$ARCH" = "aarch64" ]; then \
34+
&& curl -sSLO https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux-aarch64.zip ; \
35+
&& else \
36+
&& curl -sSLO https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip ;
37+
&& fi \
38+
&& unzip ninja*.zip \
3539
&& rm *.zip \
3640
&& mv ninja /opt/cmake/bin
3741

0 commit comments

Comments
 (0)