Skip to content

Commit 371b76c

Browse files
authored
Merge pull request #333 from amake/pin-fix
tfenv-pin does not respect TFENV_CONFIG_DIR
2 parents 962cbf9 + 2ed1425 commit 371b76c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libexec/tfenv-pin

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ done;
6262
[ "${#}" -ne 0 ] \
6363
&& log 'error' "usage: tfenv pin"
6464

65-
[ -d "${TFENV_ROOT}/versions/" ] \
65+
[ -d "${TFENV_CONFIG_DIR}/versions/" ] \
6666
|| log 'error' 'No versions available. Please install one with: tfenv install'
6767

68-
[[ -x "${TFENV_ROOT}/versions" && -r "${TFENV_ROOT}/versions" ]] \
69-
|| log 'error' "tfenv versions directory is inaccessible: ${TFENV_ROOT}/versions";
68+
[[ -x "${TFENV_CONFIG_DIR}/versions" && -r "${TFENV_CONFIG_DIR}/versions" ]] \
69+
|| log 'error' "tfenv versions directory is inaccessible: ${TFENV_CONFIG_DIR}/versions";
7070

7171
version_name="$(tfenv-version-name 2>/dev/null || true)" \
7272
&& log 'debug' "tfenv-version-name reported: ${version_name}";

0 commit comments

Comments
 (0)