I have the script below...
And I cannot seem to get the variables to work
#!/bin/bash
info = 'Help...?'
object='{"attachments": [{"title": "ti1","text": $info }]}'
curl -X POST -H 'Content-type: application/json' --data '$object' https://hooks.slack.com/services/xxxx
exit 0
Even --data '$object'
doesn't work without $info
...as Slack API couldn't read my request.
How do I fix this?