Browse code

Ensures cross compatibility for zsh and bash.

Fixes bug #1207853

Change-Id: I8ab3959ac8dbb5bb199e325bfdfdc513b4327410

James Kyle authored on 2013/08/03 02:40:32
Showing 1 changed files
... ...
@@ -930,7 +930,7 @@ function pip_install {
930 930
         CMD_PIP=$(get_pip_command)
931 931
     fi
932 932
 
933
-    if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then
933
+    if is_fedora && [[ $DISTRO =~ (rhel6) ]]; then
934 934
         # RHEL6 pip by default doesn't have this (was introduced
935 935
         # around 0.8.1 or so)
936 936
         PIP_USE_MIRRORS=${PIP_USE_MIRRORS:-False}