Skip to content

Commit 00953dc

Browse files
committed
fix: link replacement for arm architecture
1 parent bc4dec6 commit 00953dc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/install

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,7 @@ get_download_url() {
176176
esac
177177
local -r releases_host="https://releases.hashicorp.com"
178178

179-
if ! curl -fs "${releases_host}/${toolname}/${version}/${filename}" >/dev/null && [[ ${filename} == *"arm64"* ]]; then
180-
echo "https://releases.hashicorp.com/${toolname}/${version}/${filename//arm64/arm}"
181-
else
182-
echo "https://releases.hashicorp.com/${toolname}/${version}/${filename}"
183-
fi
179+
echo "https://releases.hashicorp.com/${toolname}/${version}/${filename}"
184180
}
185181

186182
install "${ASDF_INSTALL_TYPE}" "${ASDF_INSTALL_VERSION}" "${ASDF_INSTALL_PATH}"

0 commit comments

Comments
 (0)