Merge "install_pip script fails if pip was not installed"
This commit is contained in:
commit
1fbff91a2d
@ -50,10 +50,12 @@ GetDistro
|
|||||||
echo "Distro: $DISTRO"
|
echo "Distro: $DISTRO"
|
||||||
|
|
||||||
function get_versions() {
|
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
|
if [[ -n $PIP ]]; then
|
||||||
PIP_VERSION=$($PIP --version | awk '{ print $2}')
|
PIP_VERSION=$($PIP --version | awk '{ print $2}')
|
||||||
echo "pip: $PIP_VERSION"
|
echo "pip: $PIP_VERSION"
|
||||||
|
else
|
||||||
|
echo "pip: Not Installed"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user