warrensbox/terraform-switcher

Install issue

Closed this issue · 2 comments

when installing via CURL on Ubuntu 20 or Centos 7
curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | bash

I get fallowing info
install: cannot create regular file '/usr/local/bin/tfswitch': Permission denied

Docent mother is i'm running this with sudo or not.

I needed to run sudo bash instead/aswell, so:

sudo curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | sudo bash

The first part is just the web request, the second part is the installation which requires elevated privs.

@mariuszkopowski
Can you try:

wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh 
chmod 755 install.sh
./install.sh -b bin-directory

./bin-directory/tfswitch