Browse code

Merge "install_pip script fails if pip was not installed"

Jenkins authored on 2013/10/09 00:00:53
Showing 1 changed files
... ...
@@ -50,10 +50,12 @@ GetDistro
50 50
 echo "Distro: $DISTRO"
51 51
 
52 52
 function get_versions() {
53
-    PIP=$(which pip 2>/dev/null || which pip-python 2>/dev/null)
53
+    PIP=$(which pip 2>/dev/null || which pip-python 2>/dev/null || true)
54 54
     if [[ -n $PIP ]]; then
55 55
         PIP_VERSION=$($PIP --version | awk '{ print $2}')
56 56
         echo "pip: $PIP_VERSION"
57
+    else
58
+        echo "pip: Not Installed"
57 59
     fi
58 60
 }
59 61