从Github获取日志并更新hexo

自用更新脚本

1
2
3
4
5
6
7
8
#!/bin/sh
rm -rf ~/github-note-temp
mkdir ~/github-note-temp
cd ~/github-note-temp
git clone git@github.com:ilpl/note.git . #拉去到当前目录
cp -rf *?/* ~/blog/source/_posts/ # 去掉一层目录
cd ~/blog
hexo clean && hexo g -d