Ensures cross compatibility for zsh and bash.

Fixes bug #1207853

Change-Id: I8ab3959ac8dbb5bb199e325bfdfdc513b4327410
This commit is contained in:
James Kyle 2013-08-02 10:40:32 -07:00
parent 74af8ed00f
commit 3f1d0e2688

View File

@ -930,7 +930,7 @@ function pip_install {
CMD_PIP=$(get_pip_command)
fi
if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then
if is_fedora && [[ $DISTRO =~ (rhel6) ]]; then
# RHEL6 pip by default doesn't have this (was introduced
# around 0.8.1 or so)
PIP_USE_MIRRORS=${PIP_USE_MIRRORS:-False}