argo-cd/hack/install.sh

23 lines
553 B
Bash
Raw Normal View History

2019-10-11 18:55:48 +00:00
#!/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
2019-10-11 18:55:48 +00:00
for product in $*; do
ARCHITECTURE=$ARCHITECTURE "$(dirname $0)/installers/install-${product}.sh"
2019-10-11 18:55:48 +00:00
done