File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG MOD_VERSION
77
88RUN \
99 echo "**** retrieve latest version ****" && \
10- if [[ -z "${MOD_VERSION+x}" ] ]; then \
10+ if [ -z "${MOD_VERSION+x}" ]; then \
1111 DOCKER_RELEASE=$(curl -sX GET "https://api.github.com/repos/moby/moby/releases/latest" \
1212 | awk '/tag_name/{print $4;exit}' FS='[""]' \
1313 | sed 's|^v||' ); \
2626 BUILDX_RELEASE=$(curl -sX GET "https://api.github.com/repos/docker/buildx/releases/latest" \
2727 | awk '/tag_name/{print $4;exit}' FS='[""]' ) && \
2828 mkdir -p /root-layer/docker-tgz && \
29- if [[ $(uname -m) == "x86_64" ] ]; then \
29+ if [ $(uname -m) = "x86_64" ]; then \
3030 echo "**** grab x86_64 tarballs and binaries ****" && \
3131 curl -fo \
3232 /root-layer/docker-tgz/docker.tgz -L \
4040 curl -fo \
4141 /root-layer/docker-tgz/docker-buildx -L \
4242 "https://github.com/docker/buildx/releases/download/${BUILDX_RELEASE}/buildx-${BUILDX_RELEASE}.linux-amd64" ; \
43- elif [[ $(uname -m) == "aarch64" ] ]; then \
43+ elif [ $(uname -m) = "aarch64" ]; then \
4444 echo "**** grab aarch64 tarballs and binaries ****" && \
4545 curl -fo \
4646 /root-layer/docker-tgz/docker.tgz -L \
You can’t perform that action at this time.
0 commit comments