mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-10 12:33:48 -05:00
RBENV_DIR sets the directory from which .rbenv-version files are scanned
This commit is contained in:
@@ -13,11 +13,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
cwd="$(pwd)"
|
||||
dirname="${1%/*}"
|
||||
|
||||
cd "$dirname"
|
||||
export RBENV_VERSION="$(rbenv version-name)"
|
||||
cd "$cwd"
|
||||
if [ -z "$RBENV_DIR" ]; then
|
||||
export RBENV_DIR="${1%/*}"
|
||||
fi
|
||||
|
||||
exec ruby "$@"
|
||||
|
||||
Reference in New Issue
Block a user