This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
pyenv
mirror of
https://github.com/pyenv/pyenv.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
241
Wiki
Activity
Browse Source
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 years ago
parent
2297bd3741
b6aef96cea
commit
9b8b9c5205
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
libexec/pyenv-version-file-write
+ 2
- 1
libexec/pyenv-version-file-write
View File
@ -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…
Cancel
Save