去掉有可能中断的tee

This commit is contained in:
hanhh
2021-08-02 18:57:48 +08:00
parent 59c9b17c40
commit 63f21b1698
2 changed files with 13 additions and 12 deletions
+3 -3
View File
@@ -170,10 +170,10 @@ update_cron() {
code=$(echo $api | jq -r .code)
message=$(echo $api | jq -r .message)
if [[ $code == 200 ]]; then
echo -e "## 更新任务状态成功" | tee -p -a $log_path
echo -e "## 更新任务状态成功" >> $log_path
else
echo -e "## 更新任务状态失败(${message})" | tee -p -a $log_path
echo -e "## 更新任务状态失败(${message})" >> $log_path
fi
}
get_token
get_token