From: Ryota MIBU Date: Wed, 10 Aug 2016 20:38:25 +0000 (+0900) Subject: fix workaround for doc8 error X-Git-Tag: colorado.1.0~12 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=3c352781db97c06468f3910834588ed727ad3725;p=opnfvdocs.git fix workaround for doc8 error Change-Id: I7c31f042f5fb02d1294e4a72aef872f153c55755 Signed-off-by: Ryota MIBU --- 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"