diff --git a/tools/install_pip.sh b/tools/install_pip.sh index 04e18261ac..940bd8c84a 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -50,10 +50,12 @@ GetDistro echo "Distro: $DISTRO" function get_versions() { - PIP=$(which pip 2>/dev/null || which pip-python 2>/dev/null) + PIP=$(which pip 2>/dev/null || which pip-python 2>/dev/null || true) if [[ -n $PIP ]]; then PIP_VERSION=$($PIP --version | awk '{ print $2}') echo "pip: $PIP_VERSION" + else + echo "pip: Not Installed" fi }