使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
pyenv
镜像自地址
https://github.com/pyenv/pyenv.git
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
241
百科
动态
浏览代码
put up a note why `version-file-read` is tricky
pull/360/head^2
Mislav Marohnić
13 年前
父节点
99551dd1ec
当前提交
21391c8d2f
共有
1 个文件被更改
,包括
2 次插入
和
2 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+2
-2
libexec/rbenv-version-file-read
+ 2
- 2
libexec/rbenv-version-file-read
查看文件
@ -5,8 +5,8 @@ set -e
VERSION_FILE="$1"
if [ -e "$VERSION_FILE" ]; then
# Read
and print
the first non-whitespace word from the specified
#
version file
.
# Read the first non-whitespace word from the specified
version file.
#
Be careful not to load it whole in case there's something crazy in it
.
version=""
while read -a words; do
word="${words[0]}"
撰写
预览
正在加载...
取消
保存