From bbc93de36a93a8542433428df7c430e5bef8294f Mon Sep 17 00:00:00 2001 From: Alex Georgousis Date: Fri, 17 Mar 2023 14:12:53 +0000 Subject: [PATCH] Support macOS asset naming scheme for older versions --- lib/utils.bash | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/utils.bash b/lib/utils.bash index e7a2486..63d9ed2 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -70,6 +70,7 @@ download_release() { version="$1" version_path="${version//extended_/}" filename="$2" + arch="$(get_arch)" platform="$(get_platform)" case "${platform}" in macOS) @@ -78,10 +79,10 @@ download_release() { if [ $version_minor -ge 103 ]; then platform="darwin" fi - arch="universal" - ;; - *) - arch="$(get_arch)" + + if [ $version_minor -ge 102 ]; then + arch="universal" + fi ;; esac