From b7758d48f3f70e8163c835999787e43cd9671fd8 Mon Sep 17 00:00:00 2001 From: Rudolf Manusadzhian Date: Mon, 15 Jul 2024 14:59:03 -0500 Subject: [PATCH] Fix the URL for ARM64 Arm64 architecture in helix releases is referred as aarch64 https://github.com/helix-editor/helix/releases I had to do this change for my machine (runs on Apple M2) --- lib/utils.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils.bash b/lib/utils.bash index 3ae881c..5a46113 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -44,6 +44,11 @@ download_release() { if [ "$os" = "darwin" ]; then os="macos" fi + + if [ "$architecture" = "arm64" ]; then + architecture="aarch64" + fi + url="$GH_REPO/releases/download/${version}/helix-${version}-${architecture}-${os}.tar.xz" echo "* Downloading $TOOL_NAME release $version..."