mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
22 lines
553 B
Bash
Executable file
22 lines
553 B
Bash
Executable file
#!/bin/bash
|
|
set -eux -o pipefail
|
|
|
|
export DOWNLOADS=/tmp/dl
|
|
export BIN=${BIN:-/usr/local/bin}
|
|
|
|
mkdir -p $DOWNLOADS
|
|
|
|
ARCHITECTURE=""
|
|
case $(uname -m) in
|
|
x86_64) ARCHITECTURE="amd64" ;;
|
|
arm|armv7l|armv8l|aarch64) dpkg --print-architecture | grep -q "arm64" && ARCHITECTURE="arm64" || ARCHITECTURE="arm" ;;
|
|
esac
|
|
|
|
if [ -z "$ARCHITECTURE" ]; then
|
|
echo "Could not detect the architecture of the system"
|
|
exit 1
|
|
fi
|
|
|
|
for product in $*; do
|
|
ARCHITECTURE=$ARCHITECTURE "$(dirname $0)/installers/install-${product}.sh"
|
|
done
|