From 266b3be888e34c54ba7f94ff0b27ed2b5a9a9cc5 Mon Sep 17 00:00:00 2001 From: "warren.veerasingam" Date: Fri, 18 Sep 2020 14:08:17 -0500 Subject: [PATCH] fixed repo --- README.md | 24 +++++++++++++--------- www/docs/Continuous-Integration.md | 33 +++++++++++------------------- 2 files changed, 26 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 5d0cc052..08971cbc 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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 diff --git a/www/docs/Continuous-Integration.md b/www/docs/Continuous-Integration.md index 2c6830af..62a4939e 100644 --- a/www/docs/Continuous-Integration.md +++ b/www/docs/Continuous-Integration.md @@ -1,32 +1,21 @@ ### Jenkins setup -drawing +drawing ```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 ``` @@ -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