install.fairie/home/dot_local/bin/post-installx/executable_post-tfenv.sh

11 lines
287 B
Bash
Raw Normal View History

2024-05-03 19:40:44 -07:00
#!/usr/bin/env bash
# @file tfenv
# @brief Configures tfenv to use the latest version of Terraform
if command -v tfenv > /dev/null; then
2024-05-09 19:53:38 -07:00
logg info 'Configuring tfenv to use latest version of Terraform'
2024-05-03 19:40:44 -07:00
tfenv use latest
2024-05-09 19:53:38 -07:00
else
logg warn 'tfenv is not available in the PATH'
2024-05-03 19:40:44 -07:00
fi