We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 962cbf9 + 2ed1425 commit 371b76cCopy full SHA for 371b76c
1 file changed
libexec/tfenv-pin
@@ -62,11 +62,11 @@ done;
62
[ "${#}" -ne 0 ] \
63
&& log 'error' "usage: tfenv pin"
64
65
-[ -d "${TFENV_ROOT}/versions/" ] \
+[ -d "${TFENV_CONFIG_DIR}/versions/" ] \
66
|| log 'error' 'No versions available. Please install one with: tfenv install'
67
68
-[[ -x "${TFENV_ROOT}/versions" && -r "${TFENV_ROOT}/versions" ]] \
69
- || log 'error' "tfenv versions directory is inaccessible: ${TFENV_ROOT}/versions";
+[[ -x "${TFENV_CONFIG_DIR}/versions" && -r "${TFENV_CONFIG_DIR}/versions" ]] \
+ || log 'error' "tfenv versions directory is inaccessible: ${TFENV_CONFIG_DIR}/versions";
70
71
version_name="$(tfenv-version-name 2>/dev/null || true)" \
72
&& log 'debug' "tfenv-version-name reported: ${version_name}";
0 commit comments