mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-14 14:33:52 -05:00
Show error message if the source version is not installed (#83)
This commit is contained in:
@@ -282,7 +282,10 @@ fi
|
|||||||
export PYENV_VERSION="${VERSION_NAME}"
|
export PYENV_VERSION="${VERSION_NAME}"
|
||||||
|
|
||||||
# Source version must exist before creating virtualenv.
|
# Source version must exist before creating virtualenv.
|
||||||
pyenv-prefix 1>/dev/null 2>&1 || usage 1
|
if ! pyenv-prefix 1>/dev/null 2>&1; then
|
||||||
|
echo "pyenv-virtualenv: \`${PYENV_VERSION}' is not installed in pyenv." 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$TMPDIR" ]; then
|
if [ -z "$TMPDIR" ]; then
|
||||||
TMP="/tmp"
|
TMP="/tmp"
|
||||||
|
|||||||
Reference in New Issue
Block a user