Skip to content

Commit

Permalink
fix shell error
Browse files Browse the repository at this point in the history
  • Loading branch information
chhpt committed Sep 20, 2019
1 parent 5052de6 commit 9a5e3c1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 @- <<END
{
"msgtype": "markdown",
"markdown": {
"content": "${POST_MESSAGE}"
}
}
END

0 comments on commit 9a5e3c1

Please sign in to comment.