Merge "Safety check for python version in get_pip_command"
This commit is contained in:
commit
984c3ae33b
@ -29,6 +29,10 @@ declare -A -g PROJECT_VENV
|
|||||||
# get_pip_command
|
# get_pip_command
|
||||||
function get_pip_command {
|
function get_pip_command {
|
||||||
local version="$1"
|
local version="$1"
|
||||||
|
if [ -z "$version" ]; then
|
||||||
|
die $LINENO "pip python version is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
# NOTE(dhellmann): I don't know if we actually get a pip3.4-python
|
# NOTE(dhellmann): I don't know if we actually get a pip3.4-python
|
||||||
# under any circumstances.
|
# under any circumstances.
|
||||||
which pip${version} || which pip${version}-python
|
which pip${version} || which pip${version}-python
|
||||||
|
Loading…
Reference in New Issue
Block a user