From 7cc0db0ddfca15212b0360a2a54a9a011e587391 Mon Sep 17 00:00:00 2001 From: Alex Shafer Date: Thu, 30 Mar 2023 08:56:33 -0700 Subject: [PATCH] fix darwin arch selection logic --- libexec/tfenv-install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libexec/tfenv-install b/libexec/tfenv-install index d13b384..31cb5ca 100755 --- a/libexec/tfenv-install +++ b/libexec/tfenv-install @@ -124,8 +124,7 @@ case "$(uname -m)" in ;; "darwin") # No Apple Silicon builds before 1.0.2 - if [[ "${version}" =~ 0\..+$ || "${version}" =~ 1\.0\.0|1$ - ]]; then + if [[ "${version}" =~ ^0\. || "${version}" =~ ^1\.0\.[01]$ ]]; then TFENV_ARCH="${TFENV_ARCH:-amd64}"; else TFENV_ARCH="${TFENV_ARCH:-arm64}";