修复添加定时任务插入顺序

ql repo拉取失败自动删除目录重新拉取一次
This commit is contained in:
hanhh
2021-08-12 00:00:39 +08:00
parent 8be71b129a
commit d06fccd0d1
10 changed files with 50 additions and 200 deletions
+9 -1
View File
@@ -164,7 +164,15 @@ update_repo() {
echo -e "\n更新${repo_path}成功...\n"
diff_scripts "$repo_path" "$author" "$path" "$blackword" "$dependence"
else
echo -e "\n更新${repo_path}失败,请检查原因...\n"
echo -e "\n更新${repo_path}失败,重新下载全新仓库...\n"
rm -rf ${repo_path}
git_clone_scripts "${formatUrl}" ${repo_path} "${branch}"
if [[ $exit_status -eq 0 ]]; then
echo -e "\n更新${repo_path}成功...\n"
diff_scripts "$repo_path" "$author" "$path" "$blackword" "$dependence"
else
echo -e "\n更新${repo_path}失败,请检查网络...\n"
fi
fi
}