Skip to content

Commit 7e70f6e

Browse files
committed
Reduce duplication
1 parent fa5a5e9 commit 7e70f6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ ARG MOUNTPOINT_S3_VERSION=1.19.0
4949
RUN set -eux ; \
5050
ARCH="$(arch)"; \
5151
case "${ARCH}" in \
52-
x86_64) url="https://s3.amazonaws.com/mountpoint-s3-release/${MOUNTPOINT_S3_VERSION}/x86_64/mount-s3-${MOUNTPOINT_S3_VERSION}-x86_64.rpm" ;; \
53-
aarch64) url="https://s3.amazonaws.com/mountpoint-s3-release/${MOUNTPOINT_S3_VERSION}/arm64/mount-s3-${MOUNTPOINT_S3_VERSION}-arm64.rpm" ;; \
52+
x86_64) arch='x86_64' ;; \
53+
aarch64) arch='arm64' ;; \
5454
*) echo "Unsupported architecture: ${ARCH}"; exit 1 ;; \
5555
esac; \
56-
curl -L ${url} -o mount-s3.rpm ; \
56+
curl -L "https://s3.amazonaws.com/mountpoint-s3-release/${MOUNTPOINT_S3_VERSION}/${arch}/mount-s3-${MOUNTPOINT_S3_VERSION}-${arch}.rpm" -o mount-s3.rpm ; \
5757
dnf install -y mount-s3.rpm ; \
5858
rm -f mount-s3.rpm
5959

0 commit comments

Comments
 (0)