Also supress the --version error
This commit is contained in:
parent
741636f00a
commit
d595ef60d3
@ -22,7 +22,7 @@ check_for_existing_virtual_environment() {
|
|||||||
local target_python_version_regex="^Python ${python_version}"
|
local target_python_version_regex="^Python ${python_version}"
|
||||||
|
|
||||||
# Check for existing venv, and if one exists, save the Python version string
|
# 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
|
if [ "$?" = "0" ]; then
|
||||||
# Existing venv; see if the Python version matches
|
# Existing venv; see if the Python version matches
|
||||||
if [[ "${existing_venv_version}" =~ ${target_python_version_regex} ]]; then
|
if [[ "${existing_venv_version}" =~ ${target_python_version_regex} ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user