1
0
mirror of https://github.com/hegerdes/gitlab-actions.git synced 2025-10-06 05:36:52 +02:00
Files
gitlab-actions/scripts/generated/az-copy-install.sh
Henrik Gerdes 49d905e089 feat: add helm docs install
Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
2025-01-31 22:33:08 +01:00

16 lines
422 B
Bash
Executable File

#!/bin/bash
# Check if azcopy is installed
if ! command -v azcopy > /dev/null; then
echo "Installing azcopy"
if [ "$(uname -m)" = "aarch64" ]; then
ARCH="-arm64"
fi
if command -v apk > /dev/null; then
apk add --no-cache libc6-compat > /dev/null
fi
curl -sL https://aka.ms/downloadazcopy-v10-linux${ARCH} -o az-copy.tar
tar -xf az-copy.tar --strip-components=1 -C /usr/local/bin/
fi
azcopy --version