From e6ff4098c56047ded88c80baaa74069d7858e529 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 2 May 2021 10:04:50 +0800 Subject: [PATCH] =?UTF-8?q?curl=20=E4=BD=BF=E7=94=A8=E9=9D=99=E9=BB=98?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= 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 d118a0ac..7c7273b8 100755 --- a/shell/api.sh +++ b/shell/api.sh @@ -31,7 +31,7 @@ add_cron_api() { local name=$3 fi - local api=$(curl "http://localhost:5600/api/crons?t=$currentTimeStamp" \ + local api=$(curl -s "http://localhost:5600/api/crons?t=$currentTimeStamp" \ -H "Accept: application/json" \ -H "Authorization: Bearer $token" \ -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36" \ @@ -52,7 +52,7 @@ add_cron_api() { del_cron_api() { local id=$1 local currentTimeStamp=$(date +%s) - local api=$(curl "http://localhost:5600/api/crons/$id?t=$currentTimeStamp" \ + local api=$(curl -s "http://localhost:5600/api/crons/$id?t=$currentTimeStamp" \ -X 'DELETE' \ -H "Accept: application/json" \ -H "Authorization: Bearer $token" \