Browse Source

fix GitPython版本问题

alenx.hai 4 years ago
parent
commit
8bfc842fb5
2 changed files with 4 additions and 4 deletions
  1. 3 3
      admin.sh
  2. 1 1
      requirements/prod.txt

+ 3 - 3
admin.sh

@@ -14,9 +14,9 @@
 # 如果检测到 sh 指向的是 dash, 那么将使用 bash 重新执行脚本,然后在参数末尾加上一个 flag, 表示此次运行是修正过的, 避免陷入死循环。
 fix_ubuntu_bash="fix-sh-in-ubuntu"
 
-if [ ! -n "`echo $@ | grep $fix_ubuntu_bash$`" ]; then
-    if [ -n "`ls -l /bin/sh | grep "dash"`" ]; then
-        bash $0 $@ $fix_ubuntu_bash
+if [[ ! -n "$(echo $@ | grep ${fix_ubuntu_bash})" ]]; then
+    if [[ -n "$(ls -l /bin/sh | grep "dash")" ]]; then
+        bash $0 $@ ${fix_ubuntu_bash}
         exit
     fi
 fi

+ 1 - 1
requirements/prod.txt

@@ -40,5 +40,5 @@ celery==3.1.18
 pycrypto==2.6.1
 pytz==2015.7
 requests==2.20.0
-GitPython==2.1.11
+GitPython==2.1.15
 pymysql ==0.9.3