Skip to content

Commit 3cacd91

Browse files
committed
Fix ARM64 support for 0.13 terraform versions
Fix regexp for previous versions
1 parent 1fed6cf commit 3cacd91

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

libexec/tfenv-install

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ case "$(uname -m)" in
8888
# There is no arm64 support for versions:
8989
# < 0.11.15
9090
# >= 0.12.0, < 0.12.30
91-
if [[ "${version}" =~ 0\.(([0-9]|1[0-1])).[0-1][0-4]?$ || "${version}" =~ 0\.12\.[0-2][0-9]?$ ]]; then
91+
# >= 0.13.0, < 0.13.5
92+
if [[ "${version}" =~ 0\.(([0-9]|10))\.\d* ||
93+
"${version}" =~ 0\.11\.(([0-9]|1[0-4]))$ ||
94+
"${version}" =~ 0\.12\.(([0-9]|[1-2][0-9]))$ ||
95+
"${version}" =~ 0\.13\.[0-4]$
96+
]]; then
9297
TFENV_ARCH="${TFENV_ARCH:-amd64}";
9398
else
9499
TFENV_ARCH="${TFENV_ARCH:-arm64}";

0 commit comments

Comments
 (0)