修复repo命令日志文件唯一值

This commit is contained in:
hanhh
2021-08-05 14:42:53 +08:00
parent d6f5198893
commit 5fbad9956f
3 changed files with 31 additions and 22 deletions
+2 -4
View File
@@ -169,10 +169,8 @@ update_cron() {
)
code=$(echo $api | jq -r .code)
message=$(echo $api | jq -r .message)
if [[ $code == 200 ]]; then
echo -e "## 更新任务状态成功\n" >> $log_path
else
echo -e "\n## 更新任务状态失败(${message})" >> $log_path
if [[ $code != 200 ]]; then
echo -e "\n## 更新任务状态失败(${message})\n" >> $log_path
fi
}