From 4f53d134bf767e0d13d3fc1d9d6eee07edbc1960 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 14 Aug 2021 15:34:07 +0200 Subject: [PATCH 1/2] install: support arm64 arch --- install_linux.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install_linux.sh b/install_linux.sh index 4af105a88..a95a7bff3 100755 --- a/install_linux.sh +++ b/install_linux.sh @@ -4,6 +4,8 @@ processor=$(uname -m) if [ "$processor" == "x86_64" ]; then arch="amd64" +elif [ "$processor" == "arm64" ]; then + arch="arm64" else arch="386" fi From 2178e7bd33e982712a2911c8c13dcf64b5876971 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 14 Aug 2021 15:34:50 +0200 Subject: [PATCH 2/2] install: fail when unable to download tflint distribution --- install_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_linux.sh b/install_linux.sh index a95a7bff3..d914fc566 100755 --- a/install_linux.sh +++ b/install_linux.sh @@ -43,7 +43,7 @@ else fi echo "Downloading TFLint $version" -curl -L -o /tmp/tflint.zip "https://github.com/terraform-linters/tflint/releases/download/${version}/tflint_${os}.zip" +curl --fail --silent -L -o /tmp/tflint.zip "https://github.com/terraform-linters/tflint/releases/download/${version}/tflint_${os}.zip" retVal=$? if [ $retVal -ne 0 ]; then echo "Failed to download tflint_${os}.zip"