mirror of
https://github.com/pyenv/pyenv.git
synced 2025-05-02 02:39:10 +00:00
Merge pull request #230 from blueyed/version-file-write-no-rm
pyenv-version-file-write: do not use rm, but clobber the file
This commit is contained in:
commit
9b8b9c5205
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ fi
|
||||||
pyenv-prefix "${versions[@]}" >/dev/null
|
pyenv-prefix "${versions[@]}" >/dev/null
|
||||||
|
|
||||||
# Write the version out to disk.
|
# 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
|
for version in "${versions[@]}"; do
|
||||||
echo "$version" >> "$PYENV_VERSION_FILE"
|
echo "$version" >> "$PYENV_VERSION_FILE"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue