Skip to content

Commit 59a56bc

Browse files
committed
Merge pull request douban#55 from youngsterxyf/master
fix bug: 仅当Python版本低于2.7时才会执行exit 1退出
2 parents 9c67868 + 16e22f9 commit 59a56bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install_code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Check Python version > 2.7
4-
test `python -c 'import sys; print sys.version_info < (2, 7)'` = "True" && echo 'CODE requires Python 2.7.'; exit 1
4+
test `python -c 'import sys; print sys.version_info < (2, 7)'` = "True" && echo 'CODE requires Python 2.7.' && exit 1
55

66
url='https://raw.github.com/douban/code/master/scripts'
77

0 commit comments

Comments
 (0)