From 2a39fffea966ba6b51c61ddb43dd06ac500619b4 Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Thu, 5 Mar 2020 15:28:34 +0100 Subject: [PATCH] Dockerfile.dapper: Use = instead of == for portability By using the POSIX = instead of == in the shell script comparison, we don't have to rely on the go container's /bin/sh being a shell that handles ==. (Even if it currently is.) Change-Id: Ie02c8e27c3eecc957278c274fee661abb2c8abcf Signed-off-by: Joakim Roubert --- Dockerfile.dapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.dapper b/Dockerfile.dapper index b990537d15..37d7f7a51e 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -13,7 +13,7 @@ RUN rm -rf /go/src /go/pkg ARG DAPPER_HOST_ARCH ENV ARCH $DAPPER_HOST_ARCH -RUN if [ "${ARCH}" == "amd64" ]; then \ +RUN if [ "${ARCH}" = 'amd64' ]; then \ curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.15.0; \ fi