diff --git a/src/clusterctl/install.sh b/src/clusterctl/install.sh index 2de664e..ac9e4c1 100755 --- a/src/clusterctl/install.sh +++ b/src/clusterctl/install.sh @@ -21,7 +21,7 @@ if [ "$(id -u)" -ne 0 ]; then fi echo "Step 2, check if architecture is supported" -architecture="$(uname -m)" +architecture="$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)" if [ "${architecture}" != "amd64" ] && [ "${architecture}" != "x86_64" ] && [ "${architecture}" != "arm64" ] && [ "${architecture}" != "aarch64" ]; then echo "(!) Architecture $architecture unsupported" exit 1 @@ -50,7 +50,6 @@ check_packages ca-certificates curl unzip # Install clusterctl - curl -sSL "https://github.com/kubernetes-sigs/cluster-api/releases/download/${VERSION}/clusterctl-linux-${architecture}" -o "${BIN}/clusterctl" chmod +x "${BIN}/clusterctl"