Skip to content

Commit

Permalink
Merge pull request #403 from bryanhiestand/fix_darwin_arm64_regex
Browse files Browse the repository at this point in the history
Fix darwin arch regex forces amd64 for some versions with arm64 available
  • Loading branch information
Zordrak authored Dec 19, 2023
2 parents 6bbd3ec + 9d2bd77 commit 3782903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/tfenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ case "$(uname -m)" in
;;
"darwin")
# No Apple Silicon builds before 1.0.2
if [[ "${version}" =~ 0\..+$ || "${version}" =~ 1\.0\.0|1$
if [[ "${version}" =~ ^0\.[0-9]+\.[0-9]+ || "${version}" =~ ^1\.0\.[0-1]$
]]; then
TFENV_ARCH="${TFENV_ARCH:-amd64}";
else
Expand Down

0 comments on commit 3782903

Please sign in to comment.