diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e25039e..7dd98d51 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ version: 2 jobs: build: docker: - - image: circleci/golang:1.10 + - image: circleci/golang:1.13 working_directory: /go/src/github.com/warrensbox/terraform-switcher @@ -22,7 +22,7 @@ jobs: release: docker: - - image: circleci/golang:1.11 + - image: circleci/golang:1.13 working_directory: /go/src/github.com/warrensbox/terraform-switcher diff --git a/README.md b/README.md index e90ee4c7..ea8e8704 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Add the following to the end of your `~/.bashrc` file: cdtfswitch(){ builtin cd "$@"; cdir=$PWD; - if [ -f "$cdir/.tfswitchrc" ]; then + if [ -e "$cdir/.tfswitchrc" ]; then tfswitch fi } @@ -146,7 +146,7 @@ load-tfswitch cd(){ builtin cd "$@"; cdir=$PWD; - if [ -f "$cdir/.tfswitchrc" ]; then + if [ -e "$cdir/.tfswitchrc" ]; then tfswitch fi } diff --git a/docs/_site/additional.html b/docs/_site/additional.html index 3804fb02..fc8b6baf 100644 --- a/docs/_site/additional.html +++ b/docs/_site/additional.html @@ -23,7 +23,7 @@ {"description":"A command line tool to switch between different versions of terraform (with homebrew and more)","@type":"WebPage","url":"/additional.html","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"tfswitch","@context":"http://schema.org"} - + diff --git a/docs/_site/index.html b/docs/_site/index.html index afbfaedd..bcf44a64 100644 --- a/docs/_site/index.html +++ b/docs/_site/index.html @@ -23,7 +23,7 @@ {"name":"tfswitch","description":"A command line tool to switch between different versions of terraform (with homebrew and more)","@type":"WebSite","url":"/","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"Terraform Switcher","@context":"http://schema.org"} - + @@ -146,6 +146,7 @@
This is similiar to using a .tfswitchrc file, but you can specify a custom binary path for your terraform installation
@@ -184,7 +185,7 @@cdtfswitch(){
builtin cd "$@";
cdir=$PWD;
- if [ -f "$cdir/.tfswitchrc" ]; then
+ if [ -e "$cdir/.tfswitchrc" ]; then
tfswitch
fi
}
@@ -215,7 +216,7 @@ Use .tfswitchrc file
cd(){
builtin cd "$@";
cdir=$PWD;
- if [ -f "$cdir/.tfswitchrc" ]; then
+ if [ -e "$cdir/.tfswitchrc" ]; then
tfswitch
fi
}
diff --git a/docs/_site/index.md b/docs/_site/index.md
index 4b450544..ad4500e5 100644
--- a/docs/_site/index.md
+++ b/docs/_site/index.md
@@ -71,6 +71,8 @@ terraform {
}
```
+
+
### Use .tfswitch.toml file (For non-admin - users with limited privilege on their computers)
This is similiar to using a .tfswitchrc file, but you can specify a custom binary path for your terraform installation
@@ -106,7 +108,7 @@ Add the following to the end of your `~/.bashrc` file:
cdtfswitch(){
builtin cd "$@";
cdir=$PWD;
- if [ -f "$cdir/.tfswitchrc" ]; then
+ if [ -e "$cdir/.tfswitchrc" ]; then
tfswitch
fi
}
@@ -138,7 +140,7 @@ load-tfswitch
cd(){
builtin cd "$@";
cdir=$PWD;
- if [ -f "$cdir/.tfswitchrc" ]; then
+ if [ -e "$cdir/.tfswitchrc" ]; then
tfswitch
fi
}
diff --git a/docs/index.md b/docs/index.md
index 4b450544..ad4500e5 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -71,6 +71,8 @@ terraform {
}
```
+
+
### Use .tfswitch.toml file (For non-admin - users with limited privilege on their computers)
This is similiar to using a .tfswitchrc file, but you can specify a custom binary path for your terraform installation
@@ -106,7 +108,7 @@ Add the following to the end of your `~/.bashrc` file:
cdtfswitch(){
builtin cd "$@";
cdir=$PWD;
- if [ -f "$cdir/.tfswitchrc" ]; then
+ if [ -e "$cdir/.tfswitchrc" ]; then
tfswitch
fi
}
@@ -138,7 +140,7 @@ load-tfswitch
cd(){
builtin cd "$@";
cdir=$PWD;
- if [ -f "$cdir/.tfswitchrc" ]; then
+ if [ -e "$cdir/.tfswitchrc" ]; then
tfswitch
fi
}