From d595ef60d34b08004885cb6de8f83e59efa7de51 Mon Sep 17 00:00:00 2001 From: raydds Date: Thu, 16 Jan 2020 11:46:03 -0500 Subject: [PATCH] Also supress the --version error --- script/include/setup_functions.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/include/setup_functions.inc.sh b/script/include/setup_functions.inc.sh index 7f0512a7..97ab9e4b 100644 --- a/script/include/setup_functions.inc.sh +++ b/script/include/setup_functions.inc.sh @@ -22,7 +22,7 @@ check_for_existing_virtual_environment() { local target_python_version_regex="^Python ${python_version}" # Check for existing venv, and if one exists, save the Python version string - existing_venv_version=$($(pipenv --py 2> /dev/null) --version) + existing_venv_version=$($(pipenv --py 2> /dev/null) --version 2> /dev/null) if [ "$?" = "0" ]; then # Existing venv; see if the Python version matches if [[ "${existing_venv_version}" =~ ${target_python_version_regex} ]]; then