修改tee参数

This commit is contained in:
hanhh
2021-07-14 15:40:59 +08:00
parent dac694776d
commit cc238dedbc
3 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -170,9 +170,9 @@ update_cron() {
code=$(echo $api | jq -r .code)
message=$(echo $api | jq -r .message)
if [[ $code == 200 ]]; then
echo -e "## 更新任务状态成功" | tee -a $log_path
echo -e "## 更新任务状态成功" | tee --output-error=warn -a $log_path
else
echo -e "## 更新任务状态失败(${message})" | tee -a $log_path
echo -e "## 更新任务状态失败(${message})" | tee --output-error=warn -a $log_path
fi
}