Merge "Safety check for python version in get_pip_command"

This commit is contained in:
Zuul 2019-05-21 10:23:18 +00:00 committed by Gerrit Code Review
commit 984c3ae33b

View File

@ -29,6 +29,10 @@ declare -A -g PROJECT_VENV
# get_pip_command
function get_pip_command {
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
# under any circumstances.
which pip${version} || which pip${version}-python