From 3c352781db97c06468f3910834588ed727ad3725 Mon Sep 17 00:00:00 2001 From: Ryota MIBU Date: Thu, 11 Aug 2016 05:38:25 +0900 Subject: [PATCH] fix workaround for doc8 error Change-Id: I7c31f042f5fb02d1294e4a72aef872f153c55755 Signed-off-by: Ryota MIBU --- scripts/docs-build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.16.6