Fix get_pip_command()

Be more flexible in finding pip, especially after we start replacing it

Change-Id: I14b0ac1584aab99c2fe58a78e3a43196ae8130ca
This commit is contained in:
Dean Troyer 2013-08-01 14:17:27 -05:00
parent bc522d87f8
commit d2cfcaa576

View File

@ -1483,11 +1483,7 @@ function get_rootwrap_location() {
# Get the path to the pip command.
# get_pip_command
function get_pip_command() {
if is_fedora; then
which pip-python
else
which pip
fi
which pip || which pip-python
if [ $? -ne 0 ]; then
die $LINENO "Unable to find pip; cannot continue"