Skip to content

Commit

Permalink
Merge pull request #345 from tfutils/cleaner-chdir
Browse files Browse the repository at this point in the history
Cleaner chdir?
  • Loading branch information
Zordrak authored Jul 15, 2022
2 parents 0b34f4a + f23406e commit f88bfb6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/tfenv-exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ set -uo pipefail;
function tfenv-exec() {
for _arg in ${@:1}; do
if [[ "${_arg}" == -chdir=* ]]; then
log 'debug' "Found -chdir arg: ${_arg#-chdir=}";
log 'debug' "Found -chdir arg. Setting TFENV_DIR to: ${_arg#-chdir=}";
export TFENV_DIR="${PWD}/${_arg#-chdir=}";
break;
else
export TFENV_DIR="${PWD}";
fi;
log 'info' "Set TFENV_DIR to ${TFENV_DIR}";
done;

log 'debug' 'Getting version from tfenv-version-name';
Expand Down

0 comments on commit f88bfb6

Please sign in to comment.