Created
May 4, 2023 13:51
-
-
Save stv-io/555ebe8e2b5b6eb238e5822828e2ee5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export TERRAFORM_SWITCHER_VERSION=0.13.1308 | |
export TGSWITCH_VERSION=0.6.0 | |
sudo rm -rvf /usr/bin/terraform | |
mkdir -p ~/bin | |
curl https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh -o tfswitch-install.sh | |
bash tfswitch-install.sh -b ~/bin | |
rm -vf tfswitch-install.sh | |
curl https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh -o tgswitch-install.sh | |
bash tgswitch-install.sh -b ~/bin | |
rm -vf tgswitch-install.sh | |
echo "export PATH=$PATH:~/bin" >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment