We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5110017 commit edde4d2Copy full SHA for edde4d2
lib/tfenv-exec.sh
@@ -5,8 +5,10 @@ set -uo pipefail;
5
function tfenv-exec() {
6
for _arg in ${@:1}; do
7
if [[ "${_arg}" == -chdir=* ]]; then
8
- log 'debug' "Found -chdir arg. Setting TFENV_DIR to: ${_arg#-chdir=}";
9
- export TFENV_DIR="${PWD}/${_arg#-chdir=}";
+ chdir="${_arg#-chdir=}";
+ log 'debug' "Found -chdir arg: ${chdir}";
10
+ export TFENV_DIR="${PWD}/$(realpath --relative-to="${PWD}" "$chdir")";
11
+ log 'debug' "Setting TFENV_DIR to: ${TFENV_DIR}";
12
fi;
13
done;
14
0 commit comments