修复仓库更新失败 重复添加定时问题。

仓库更新失败时,没找到对应仓库目录,会把其他仓库的脚本添加前缀重复添加到定时。
This commit is contained in:
阿浩仔 2021-05-29 17:44:13 +08:00 committed by GitHub
parent 06595021cd
commit 2170628fa3

View File

@ -171,11 +171,10 @@ update_repo() {
fi
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
diff_scripts $repo_path $author $path $blackword $dependence
}
## 更新所有 raw 文件