Skip to content

Commit f88bfb6

Browse files
authored
Merge pull request #345 from tfutils/cleaner-chdir
Cleaner chdir?
2 parents 0b34f4a + f23406e commit f88bfb6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/tfenv-exec.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ set -uo pipefail;
55
function tfenv-exec() {
66
for _arg in ${@:1}; do
77
if [[ "${_arg}" == -chdir=* ]]; then
8-
log 'debug' "Found -chdir arg: ${_arg#-chdir=}";
8+
log 'debug' "Found -chdir arg. Setting TFENV_DIR to: ${_arg#-chdir=}";
99
export TFENV_DIR="${PWD}/${_arg#-chdir=}";
10-
break;
11-
else
12-
export TFENV_DIR="${PWD}";
1310
fi;
14-
log 'info' "Set TFENV_DIR to ${TFENV_DIR}";
1511
done;
1612

1713
log 'debug' 'Getting version from tfenv-version-name';

0 commit comments

Comments
 (0)