mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-12 16:26:16 -04:00
Fix errorneously creating a symlink inside env directory if running with -f
This commit is contained in:
parent
db299cada3
commit
bbcac8875c
|
|
@ -631,7 +631,8 @@ fi
|
|||
|
||||
## Create symlink in the `versions` directory for backward compatibility
|
||||
if [ -d "${VIRTUALENV_PATH}" ] && [ -n "${COMPAT_VIRTUALENV_PATH}" ]; then
|
||||
ln -fs "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
|
||||
# Overwrite an existing link, can happen if running with -f
|
||||
ln -fsn "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
|
||||
fi
|
||||
|
||||
if [ ! -e "${VIRTUALENV_PATH}/bin/pydoc" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue