使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
pyenv
镜像自地址
https://github.com/pyenv/pyenv.git
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
240
百科
动态
浏览代码
RBENV_DIR sets the directory from which .rbenv-version files are scanned
pull/360/head^2
Sam Stephenson
15 年前
父节点
a3deeba0a0
当前提交
07815769ae
共有
3 个文件被更改
,包括
9 次插入
和
7 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+3
-6
bin/ruby-local-exec
+5
-0
libexec/rbenv
+1
-1
libexec/rbenv-version-file
+ 3
- 6
bin/ruby-local-exec
查看文件
@ -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 "$@"
+ 5
- 0
libexec/rbenv
查看文件
@ -27,6 +27,11 @@ else
fi
export RBENV_ROOT
if [ -z "${RBENV_DIR}" ]; then
RBENV_DIR="$(pwd)"
fi
export RBENV_DIR
shopt -s nullglob
+ 1
- 1
libexec/rbenv-version-file
查看文件
@ -2,7 +2,7 @@
set -e
[ -n "$RBENV_DEBUG" ] && set -x
root="$
(pwd)
"
root="$
RBENV_DIR
"
while [ -n "$root" ]; do
if [ -e "${root}/.rbenv-version" ]; then
echo "${root}/.rbenv-version"
撰写
预览
正在加载...
取消
保存