Skip to content

Commit

Permalink
allow match for 0. versions that end with extra characters like 0.11.…
Browse files Browse the repository at this point in the history
…0-beta1
  • Loading branch information
bryanhiestand authored and Zordrak committed Dec 19, 2023
1 parent c12a0ad commit 9d2bd77
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\.[0-9]+\.[0-9]+$ || "${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 9d2bd77

Please sign in to comment.