From a950db00cc385d4d78f28b59ac9730552ed85d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 14 Aug 2023 23:43:43 +0200 Subject: [PATCH] Changed the removing TFENF_VER_ARRAY --- .local/bin/Update-pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/Update-pkg b/.local/bin/Update-pkg index b7f9300..8b59fe3 100755 --- a/.local/bin/Update-pkg +++ b/.local/bin/Update-pkg @@ -69,7 +69,7 @@ function install_terraform() { brew install tflint -q brew install tfenv -q TFENV_ARCH=amd64 tfenv install latest - TFENV_VER_ARRAY=($(tfenv list | grep -ioE ' [0-9.]+' | sed -e '1,2d')) + TFENV_VER_ARRAY=($(tfenv list | grep -ioE ' [0-9.]+' | sed -e '1,1d')) if [ "${#TFENV_VER_ARRAY[@]}" -gt "2" ]; then for i in "${TFENV_VER_ARRAY[@]}"; do tfenv uninstall "$i" && timestamp "Removed - terraform '$i' version"