This website works better with JavaScript.
首頁
探索
說明
登入
isprogram
/
pyenv
镜像来自
https://github.com/pyenv/pyenv.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
Projects
0
版本發佈
241
Wiki
Activity
瀏覽代碼
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 Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
取消
儲存