Skip to content

Commit

Permalink
fix mc binary
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
  • Loading branch information
alexandreLamarre committed Apr 18, 2024
1 parent 1b60d2d commit 9b65659
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/e2e/scripts/install-mc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,21 @@
set -e
set -x

# TODO : add support for architectures
ARCH=amd64

curl -sL https://dl.min.io/client/mc/release/linux-${ARCH}/mc
chmod +x mc;
# initArch discovers the architecture for this system.
initArch() {
ARCH=$(uname -m)
case $ARCH in
armv7*) ARCH="arm";;
aarch64) ARCH="arm64";;
x86_64) ARCH="amd64";;
esac
}


initArch

curl -sL --fail https://dl.min.io/client/mc/release/linux-${ARCH}/mc > mc;
chmod +x mc;

cp mc /usr/local/bin/mc

0 comments on commit 9b65659

Please sign in to comment.