Browse code

Merge "Safety check for python version in get_pip_command"

Zuul authored on 2019/05/21 19:23:18
Showing 1 changed files
... ...
@@ -29,6 +29,10 @@ declare -A -g PROJECT_VENV
29 29
 # get_pip_command
30 30
 function get_pip_command {
31 31
     local version="$1"
32
+    if [ -z "$version" ]; then
33
+        die $LINENO "pip python version is not set."
34
+    fi
35
+
32 36
     # NOTE(dhellmann): I don't know if we actually get a pip3.4-python
33 37
     # under any circumstances.
34 38
     which pip${version} || which pip${version}-python