From 9a5e3c1581ebe7b0fe128de5bb22b2109b1a450e Mon Sep 17 00:00:00 2001 From: cwuyiqing Date: Fri, 20 Sep 2019 21:17:05 +0800 Subject: [PATCH] fix shell error --- entrypoint.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8f5acf3..b58dc72 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,12 +11,13 @@ if [ -z "$POST_MESSAGE" ]; then exit 1 fi -curl "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=$BOT_KEY" \ +curl "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=${BOT_KEY}" \ -H "Content-Type: application/json" \ - -d " - { - "msgtype": "markdown", - "markdown": { - "content": "$POST_MESSAGE" - } - }" + -d @- <