Skip to content

Commit

Permalink
Skip redundant check for /versions
Browse files Browse the repository at this point in the history
  • Loading branch information
iokiwi committed Feb 7, 2023
1 parent 9e1f57d commit dc04b91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libexec/tgenv-version-name
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ set -e
[ -n "${TGENV_DEBUG}" ] && set -x
source "${TGENV_ROOT}/libexec/helpers"

[ -d "${TGENV_ROOT}/versions" ] \
|| mkdir -p ${TGENV_ROOT}/versions
mkdir -p ${TGENV_ROOT}/versions

TGENV_VERSION_FILE="$(tgenv-version-file)"
TGENV_VERSION="$(cat "${TGENV_VERSION_FILE}" || true)"
Expand Down

0 comments on commit dc04b91

Please sign in to comment.