From 001e997e58f587f0ad63b2d5faf143818814de86 Mon Sep 17 00:00:00 2001 From: Bert Willekens Date: Thu, 18 Aug 2022 14:03:13 +0200 Subject: [PATCH] Update pyenv-virtualenv Create a relative symlink. --- bin/pyenv-virtualenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index b1bb20c4..83dd8b0b 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -583,7 +583,7 @@ 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}" + ln -rfs "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}" fi if [ ! -e "${VIRTUALENV_PATH}/bin/pydoc" ]; then