wangkun 2 years ago
parent
commit
b796553442
1 changed files with 1 additions and 1 deletions
  1. 1 1
      xigua.sh

+ 1 - 1
xigua.sh

@@ -8,7 +8,7 @@ ps aux | grep run_xigua_follow.py | grep -v grep | awk '{print $2}' | xargs kill
 echo "$(date "+%Y-%m-%d %H:%M:%S") 进程已杀死!"
 
 echo "$(date "+%Y-%m-%d %H:%M:%S") 正在更新代码..."
-cd /Users/piaoquan/Desktop/crawler/crawler_xigua/ && git pull origin master --force
+cd /Users/piaoquan/Desktop/crawler/crawler_xigua/ && git pull origin master --force && rm -f nohup.log
 echo "$(date "+%Y-%m-%d %H:%M:%S") 代码更新完成!"
 #source /etc/profile
 echo "$(date "+%Y-%m-%d %H:%M:%S") 正在重启服务..."