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

仓库更新失败时,没找到对应仓库目录,会把其他仓库的脚本添加前缀重复添加到定时。
This commit is contained in:
阿浩仔 2021-05-29 17:44:13 +08:00 committed by GitHub
parent a6514f7cf0
commit 8a565b135a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,11 +171,10 @@ update_repo() {
fi fi
if [[ $exit_status -eq 0 ]]; then if [[ $exit_status -eq 0 ]]; then
echo -e "\n更新${repo_path}成功...\n" echo -e "\n更新${repo_path}成功...\n"
diff_scripts $repo_path $author $path $blackword $dependence
else else
echo -e "\n更新${repo_path}失败,请检查原因...\n" echo -e "\n更新${repo_path}失败,请检查原因...\n"
fi fi
diff_scripts $repo_path $author $path $blackword $dependence
} }
## 更新所有 raw 文件 ## 更新所有 raw 文件