Explorar el Código

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 hace 12 años
padre
commit
9b8b9c5205
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      libexec/pyenv-version-file-write

+ 2
- 1
libexec/pyenv-version-file-write Ver fichero

@ -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

Cargando…
Cancelar
Guardar