Skip to content

Commit 83eb2c2

Browse files
committed
Cleaner chdir?
1 parent a913cfd commit 83eb2c2

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)