Last active
May 3, 2023 14:19
-
-
Save stv-io/c9b47ecbb898a341d393db9d2bba940d to your computer and use it in GitHub Desktop.
bootstrap
This file contains hidden or 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