From 66546cea12f63f80241807db0fb43ff114f23f85 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Tue, 28 May 2013 16:54:25 +0900 Subject: [PATCH] ignore stderr from pyenv-exec --- bin/pyenv-virtualenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index fcb4c5e..e5c7d53 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -100,7 +100,7 @@ http_get_wget() { } version() { - local version="$(pyenv-exec python "${VIRTUALENV}" --version || true)" + local version="$(pyenv-exec python "${VIRTUALENV}" --version 2>/dev/null || true)" echo "pyenv-virtualenv ${PYENV_VIRTUALENV_VERSION} (virtualenv ${version:-unknown})" }