Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,18 @@ e.g.
$ TFENV_TERRAFORM_VERSION=latest:^0.11. terraform --version
```

##### `TFENV_NETRC_PATH`

String (Default: "")

If not empty string, this variable specifies the credentials file used to access the remote location (useful if used in conjunction with TFENV_REMOTE).

e.g.

```console
$ TFENV_NETRC_PATH="$PWD/.netrc.tfenv"
```

#### Bashlog Logging Library

##### `BASHLOG_COLOURS`
Expand Down
8 changes: 7 additions & 1 deletion lib/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ function curlw () {
TLS_OPT="";
fi;

curl ${TLS_OPT} "$@";
if [[ ! -z "${TFENV_NETRC_PATH:-""}" ]]; then
NETRC_OPT="--netrc-file ${TFENV_NETRC_PATH}";
else
NETRC_OPT="";
fi;

curl ${TLS_OPT} ${NETRC_OPT} "$@";
}
export -f curlw;

Expand Down