Skip to content

Commit 3782903

Browse files
authored
Merge pull request #403 from bryanhiestand/fix_darwin_arm64_regex
Fix darwin arch regex forces amd64 for some versions with arm64 available
2 parents 6bbd3ec + 9d2bd77 commit 3782903

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libexec/tfenv-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ case "$(uname -m)" in
124124
;;
125125
"darwin")
126126
# No Apple Silicon builds before 1.0.2
127-
if [[ "${version}" =~ 0\..+$ || "${version}" =~ 1\.0\.0|1$
127+
if [[ "${version}" =~ ^0\.[0-9]+\.[0-9]+ || "${version}" =~ ^1\.0\.[0-1]$
128128
]]; then
129129
TFENV_ARCH="${TFENV_ARCH:-amd64}";
130130
else

0 commit comments

Comments
 (0)