#!/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!"