소스 검색

Enforce absolute RBENV_DIR

This prevents CDPATH from becoming an issue.

Closes #866.
pull/1133/head
Tim Pope 9 년 전
부모
커밋
1f1e291385
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      libexec/rbenv

+ 1
- 0
libexec/rbenv 파일 보기

@ -60,6 +60,7 @@ export RBENV_ROOT
if [ -z "${RBENV_DIR}" ]; then
RBENV_DIR="$PWD"
else
[[ $RBENV_DIR == /* ]] || RBENV_DIR=$PWD/$RBENV_DIR
cd "$RBENV_DIR" 2>/dev/null || abort "cannot change working directory to \`$RBENV_DIR'"
RBENV_DIR="$PWD"
cd "$OLDPWD"

불러오는 중...
취소
저장