使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
pyenv
镜像自地址
https://github.com/pyenv/pyenv.git
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
241
百科
动态
浏览代码
Merge pull request
#230
from blueyed/version-file-write-no-rm
pyenv-version-file-write: do not use rm, but clobber the file
pull/236/head
Yamashita, Yuu
12 年前
父节点
2297bd3741
b6aef96cea
当前提交
9b8b9c5205
共有
1 个文件被更改
,包括
2 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+2
-1
libexec/pyenv-version-file-write
+ 2
- 1
libexec/pyenv-version-file-write
查看文件
@ -17,7 +17,8 @@ fi
pyenv-prefix "${versions[@]}" >/dev/null
# Write the version out to disk.
rm -f "$PYENV_VERSION_FILE"
# Create an empty file. Using "rm" might cause a permission error.
> "$PYENV_VERSION_FILE"
for version in "${versions[@]}"; do
echo "$version" >> "$PYENV_VERSION_FILE"
done
撰写
预览
正在加载...
取消
保存