Skip to content

Commit

Permalink
updated install_tfenv.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jan 8, 2025
1 parent 9c18e4f commit b0a43f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install/install_tfenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ help_usage "$@"

num_args 0 "$@"

export HOME="${HOME:-$(cd && pwd)}"

export PATH="$HOME/.tfenv/bin:$PATH"

if [ -d ~/.tfenv ]; then
cd ~/.tfenv
timestamp "Git pulling in existing ~/.tfenv dir"
Expand All @@ -46,6 +50,9 @@ else
fi
echo >&2

echo -n "tfenv version: "
tfenv version-name

echo "Don't forget to add ~/.tfenv/bin to your \$PATH in your ~/.bashrc or similar"
echo
echo "(already done if sourcing DevOps-Bash-tools repo's .bashrc using .bash.d/terraform.sh)"

0 comments on commit b0a43f2

Please sign in to comment.