Browse Source

增加脚本

liuyuqi-dellpc 5 years ago
parent
commit
f9e082fbc0
1 changed files with 14 additions and 0 deletions
  1. 14 0
      shell/post-receive

+ 14 - 0
shell/post-receive

@@ -0,0 +1,14 @@
+#!/bin/sh
+
+unset GIT_DIR
+cd /home/twtech/github/python/
+
+if [ ! -d "/home/twtech/github/python/crawl-mrdx" ];then  
+    git clone https://git.yoqi.me/lyq/crawl-mrdx.git
+fi
+
+cd crawl-mrdx
+git fetch --all && git reset --hard origin/master
+echo "pull finished!"
+
+