diff options
Diffstat (limited to 'scripts/docs-build.sh')
-rwxr-xr-x | scripts/docs-build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh index e79e21c0b..7d8abf1ca 100755 --- a/scripts/docs-build.sh +++ b/scripts/docs-build.sh @@ -191,7 +191,8 @@ if ! which virtualenv > /dev/null ; then fi # workaround for doc8 error in python2.6 -if python -V | grep -q 'Python 2.6' && [ -e /usr/bin/python2.7 ] ; then +if [[ $(python -V 2>&1) == Python\ 2.6.* ]] && [ -e /usr/bin/python2.7 ]; then + echo "creating venv with Python 2.7 instead of Python 2.6.x ..." virtualenv "$VENV_DIR" --python=/usr/bin/python2.7 else virtualenv "$VENV_DIR" |