#!/bin/bash set -xeou pipefail VCLUSTER_VERSION=${1} VCLUSTER_DOWNLOAD_SHA256=${2} TARGETARCH=${TARGETARCH:-amd64} VCLUSTER_DOWNLOAD_URL=https://github.com/loft-sh/vcluster/releases/download/v${VCLUSTER_VERSION}/vcluster-linux-${TARGETARCH} /scripts/download-file vcluster "$VCLUSTER_DOWNLOAD_URL" "$VCLUSTER_DOWNLOAD_SHA256" chmod +x vcluster mv vcluster /usr/local/bin/vcluster