From 381c32a3b452a17969781b182856f60978eb3d44 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sat, 25 Sep 2021 00:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=8A=B6=E6=80=81api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/api.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/api.sh b/shell/api.sh index 996ca1af..770980ce 100755 --- a/shell/api.sh +++ b/shell/api.sh @@ -153,8 +153,8 @@ update_cron() { local status="$2" local pid="${3:-''}" local logPath="$4" - local lastExecutingTime="$5" - local runningTime="$6" + local lastExecutingTime="${5:-''}" + local runningTime="${6:-''}" local currentTimeStamp=$(date +%s) local api=$( curl -s --noproxy "*" "http://0.0.0.0:5600/api/crons/status?t=$currentTimeStamp" \