Fix get_pip_command()
Be more flexible in finding pip, especially after we start replacing it
Change-Id: I14b0ac1584aab99c2fe58a78e3a43196ae8130ca
diff --git a/functions b/functions
index 84e88fb..b82b71f 100644
--- a/functions
+++ b/functions
@@ -1483,11 +1483,7 @@
# 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"