Skip to content

Commit

Permalink
Update tfenv-version-name
Browse files Browse the repository at this point in the history
Fixing bad merge on TFENV_ROOT/TFENV_CONFIG_DIR
  • Loading branch information
Zordrak authored Aug 14, 2021
1 parent 3ecdd41 commit bbac1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/tfenv-version-name
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if [[ "${TFENV_VERSION}" =~ ^latest.*$ ]]; then
fi;

declare local_version='';
if [[ -d "${TFENV_ROOT}/versions" ]]; then
if [[ -d "${TFENV_CONFIG_DIR}/versions" ]]; then
local_version="$(\find "${TFENV_CONFIG_DIR}/versions/" -type d -exec basename {} \; \
| tail -n +2 \
| sort -t'.' -k 1nr,1 -k 2nr,2 -k 3nr,3 \
Expand Down

0 comments on commit bbac1ca

Please sign in to comment.