Ai
0 Star 0 Fork 0

漠然/Blog_backup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
autoupdate.sh 374 Bytes
一键复制 编辑 原始数据 按行查看 历史
漠然 提交于 2016-01-20 22:35 +08:00 . 修改自动更新脚本 记录Git日志
#!/bin/bash
# Name:autoupdate.sh
# This is a ShellScript For Auto Update Hexo Blog
hexoDir="/home/wwwroot/mritd.me"
updateCommand="git pull"
updatetime=`date "+%Y-%m-%d %T"`
#Swich Dir
cd $hexoDir
#Update Site
$updateCommand &>> update.log
if [ $? -eq 0 ]; then
echo "$updatetime 更新成功!" &>> update.log
else
echo "$updatetime 更新失败! " &>> update.log
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/D.k/Blog_backup.git
git@gitee.com:D.k/Blog_backup.git
D.k
Blog_backup
Blog_backup
master

搜索帮助