Skip to content

Commit

Permalink
fixed repo
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed Sep 18, 2020
1 parent 8e5d827 commit 266b3be
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 31 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,17 @@ If you have limited permission, try:
#!/bin/bash

echo "Installing tfswitch locally"
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
chmod 755 install.sh
./install.sh -b `pwd`/.bin
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh #Get the installer on to your machine

chmod 755 install.sh #Make installer executable

./install.sh -b `pwd`/.bin #Install tfswitch in a location you have permission

CUSTOMBIN=`pwd`/.bin #set custom bin path

CUSTOMBIN=`pwd`/.bin #set custom bin path
mkdir $CUSTOMBIN #create custom bin path
export PATH=$PATH:$CUSTOMBIN #Add custom bin path to PATH environment

`pwd`/.bin/tfswitch -b $CUSTOMBIN/terraform 0.11.7
$CUSTOMBIN/tfswitch -b $CUSTOMBIN/terraform 0.11.7 #or simply tfswitch -b $CUSTOMBIN/terraform 0.11.7

terraform -v #testing version
```
Expand Down Expand Up @@ -217,11 +219,13 @@ jobs:
echo "Installing tfswitch locally"
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
chmod 755 install.sh
./install.sh -b $HOME/.bin
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh #Get the installer on to your machine
chmod 755 install.sh #Make installer executable
./install.sh -b `pwd`/.bin #Install tfswitch in a location you have permission
CUSTOMBIN=$HOME/.bin #set custom bin path
CUSTOMBIN=`pwd`/.bin #set custom bin path
export PATH=$PATH:$CUSTOMBIN #Add custom bin path to PATH environment
Expand Down
33 changes: 12 additions & 21 deletions www/docs/Continuous-Integration.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
### Jenkins setup
<img src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/jenkins_tfswitch.png" alt="drawing" style="width: 170px;"/>
<img src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/jenkins_tfswitch.png" alt="drawing" style="width: 370px;"/>

```sh
#!/bin/bash

echo "Installing tfswitch locally"
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
chmod 755 install.sh
./install.sh -b `pwd`/.bin
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh #Get the installer on to your machine

`pwd`/.bin/tfswitch
```
chmod 755 install.sh #Make installer executable

If you have limited permission, try:
./install.sh -b `pwd`/.bin #Install tfswitch in a location you have permission

```sh
#!/bin/bash
CUSTOMBIN=`pwd`/.bin #set custom bin path

echo "Installing tfswitch locally"
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
chmod 755 install.sh
./install.sh -b `pwd`/.bin

CUSTOMBIN=`pwd`/.bin #set custom bin path
mkdir $CUSTOMBIN #create custom bin path
export PATH=$PATH:$CUSTOMBIN #Add custom bin path to PATH environment

`pwd`/.bin/tfswitch -b $CUSTOMBIN/terraform 0.11.7
$CUSTOMBIN/tfswitch -b $CUSTOMBIN/terraform 0.11.7 #or simply tfswitch -b $CUSTOMBIN/terraform 0.11.7

terraform -v #testing version
```
Expand Down Expand Up @@ -57,11 +46,13 @@ jobs:
echo "Installing tfswitch locally"
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
chmod 755 install.sh
./install.sh -b $HOME/.bin
wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh #Get the installer on to your machine
chmod 755 install.sh #Make installer executable
./install.sh -b `pwd`/.bin #Install tfswitch in a location you have permission
CUSTOMBIN=$HOME/.bin #set custom bin path
CUSTOMBIN=`pwd`/.bin #set custom bin path
export PATH=$PATH:$CUSTOMBIN #Add custom bin path to PATH environment
Expand Down

0 comments on commit 266b3be

Please sign in to comment.