From 5bd93186c2dd94dfa2f4c6387fc1abc7af05bbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=AA=8E?= Date: Sun, 5 Mar 2017 15:51:20 +0800 Subject: [PATCH] Fix shell script bug --- .travis.yml | 6 +++--- build.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7fa2b4c6..49024a22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,14 @@ language: python -python: +#python: # - "2.6" - - "2.7" +# - "2.7" # - "3.2" # - "3.3" # - "3.4" # - "3.5" # - "3.5-dev" # 3.5 development branch - - "3.6" +# - "3.6" # - "3.6-dev" # 3.6 development branch # - "3.7-dev" # 3.7 development branch # - "nightly" # currently points to 3.7-dev diff --git a/build.sh b/build.sh index bd0ff5b0..0e799931 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/sh -if [[$PVERSION=2]]; then +if [[ $PVERSION = 2 ]]; then python -m py_compile cps.py python -m py_compile cps/book_formats.py python -m py_compile cps/db.py @@ -11,7 +11,7 @@ python -m py_compile cps/uploader.py python -m py_compile cps/web.py python -m py_compile cps.py fi -f [[$PVERSION=3]]; then +if [[ $PVERSION = 3 ]]; then python3.6 -m py_compile cps.py python3.6 -m py_compile cps/book_formats.py python3.6 -m py_compile cps/db.py