summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-11 05:38:25 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-11 05:56:00 +0900
commit3c352781db97c06468f3910834588ed727ad3725 (patch)
tree27bf8b267b1c7a87afe9ba8f96f4dcab3b39ef14
parent1ec9066d678e6b7f0ca3bcc2cc101b26d95b6fcb (diff)
fix workaround for doc8 error
Change-Id: I7c31f042f5fb02d1294e4a72aef872f153c55755 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-rwxr-xr-xscripts/docs-build.sh3
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"