Skip to content

Commit

Permalink
Use posix compliant way to set arguments for cargo-binstall
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed Apr 10, 2024
1 parent 121bab2 commit 1b88d8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ RUN set -eux; \
RUN set -eux; \
dpkgArch="$(dpkg --print-architecture)"; \
case "${dpkgArch##*-}" in \
amd64) installArchs=(--target x86_64-unknown-linux-gnu --target x86_64-unknown-linux-musl) ;; \
arm64) installArchs=(--target aarch64-unknown-linux-gnu --target aarch64-unknown-linux-musl) ;; \
amd64) set -- --target x86_64-unknown-linux-gnu --target x86_64-unknown-linux-musl ;; \
arm64) set -- --target aarch64-unknown-linux-gnu --target aarch64-unknown-linux-musl ;; \
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
esac; \
cargo binstall "${installArchs[@]}" --no-confirm \
cargo binstall "$@" --no-confirm \
cargo-quickinstall \
cargo-audit \
cargo-outdated \
Expand Down

0 comments on commit 1b88d8e

Please sign in to comment.