From ddce28a8eb81d56677a41a44bc6c4fca0b0d21ca Mon Sep 17 00:00:00 2001 From: Lars Gohlke Date: Thu, 21 Nov 2024 15:30:59 +0100 Subject: [PATCH] migrates from tfenv to tenv --- tools/terraform.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/terraform.sh b/tools/terraform.sh index b7cb802..68687fb 100644 --- a/tools/terraform.sh +++ b/tools/terraform.sh @@ -1,16 +1,16 @@ #!/bin/bash if ! command -v terraform >/dev/null; then - echo "install terraform via tfenv" - brew install tfenv + echo "install terraform via tenv" + brew install tenv # install latest - tfenv install latest && tfenv use + tenv tf install latest && tenv tf use latest fi -if [[ -d ~/.config/topgrade ]] && ! [[ -f ~/.config/topgrade/tfenv.toml ]] && ! command -v topgrade >/dev/null; then - cat << EOF > ~/.config/topgrade/tfenv.toml +if [[ -d ~/.config/topgrade ]] && ! [[ -f ~/.config/topgrade/tenv.toml ]] && ! command -v topgrade >/dev/null; then + cat << EOF > ~/.config/topgrade/tenv.toml [commands] - "Terraform: tfenv" = "tfenv install latest && tfenv use" + "Terraform: tenv" = "tenv tf install latest && tfenv tf use latest" EOF fi