浏览代码

Update python.sh

lj2007331 7 年之前
父节点
当前提交
db5a74180e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/python.sh

+ 1 - 1
include/python.sh

@@ -78,7 +78,7 @@ EOF
     # get the IP information
     PUBLIC_IPADDR=$(../include/get_public_ipaddr.py)
     IPADDR_COUNTRY=$(../include/get_ipaddr_state.py $PUBLIC_IPADDR | awk '{print $1}')
-    if [ "$IPADDR_COUNTRY"x != "CN"x ]; then
+    if [ "$IPADDR_COUNTRY"x == "CN"x ]; then
       [ ! -d "/root/.pip" ] && mkdir /root/.pip
       echo -e "[global]\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple" > /root/.pip/pip.conf
     fi