From d2cfcaa5767b12cd1bb7d80f0d0823dd66bbb5c6 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Thu, 1 Aug 2013 14:17:27 -0500 Subject: [PATCH] Fix get_pip_command() Be more flexible in finding pip, especially after we start replacing it Change-Id: I14b0ac1584aab99c2fe58a78e3a43196ae8130ca --- functions | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/functions b/functions index 84e88fbd16..b82b71f96c 100644 --- a/functions +++ b/functions @@ -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"