github.com/argoproj/argo-cd@v1.8.7/hack/install.sh (about)

     1  #!/bin/bash
     2  set -eux -o pipefail
     3  
     4  export DOWNLOADS=/tmp/dl
     5  export BIN=${BIN:-/usr/local/bin}
     6  
     7  mkdir -p $DOWNLOADS
     8  
     9  ARCHITECTURE=""
    10  case $(uname -m) in
    11      x86_64)                     ARCHITECTURE="amd64" ;;
    12      arm|armv7l|armv8l|aarch64)  dpkg --print-architecture | grep -q "arm64" && ARCHITECTURE="arm64" || ARCHITECTURE="arm" ;;
    13  esac
    14  
    15  if [ -z "$ARCHITECTURE" ]; then
    16        echo "Could not detect the architecture of the system"
    17        exit 1
    18  fi
    19  
    20  for product in $*; do
    21    ARCHITECTURE=$ARCHITECTURE "$(dirname $0)/installers/install-${product}.sh"
    22  done