Skip to content

Commit

Permalink
fix: install clusterctl
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Oct 1, 2024
1 parent 475a6cf commit 05763a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/clusterctl/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 05763a9

Please sign in to comment.