git-slack-hook
git-slack-hook copied to clipboard
Curl wasn't working for me
I cloned your script (excellent script by the way... super helpful!) but it didnt work for me out of the box.
My bash scripting isnt that great, but I did a load of debugging and I came to the conclusion that everything is working up until the curl command.
I replaced:
curl -s
-d "payload=$payload"
"$webhook_url"
>/dev/null
with
curl -X POST
--data-urlencode "payload=$payload"
$webhook_url
>/dev/null
and now it works fine.
Just in case anyone else has a similar problem.
Tried these changes and now I get HTTP/1.1 503 Service Unavailable on the payload. Any ideas?
Thanks @yanniboi, I had similar problems, and your fix solved it for me.