I am trying to use GitHub API to create an issue, by
curl -u $username -d '{"title" : "Big Files List" , "body" : "'$(find -type f -size +1M)'", "label" : "big files" } $URL -k'
however, I got the response like
curl: (3) [globbing] unmatched close brace/bracket at pos 56
{
"message": "Invalid request.\n\nFor 'links/0/schema', \"body\" is not an
object.",
"documentation_url":
"https://developer.github.com/enterprise/2.15/v3/issues/#create-an-issue"
}
So the issue is within $(find -type f -size +1M)
, when I replace is with string, there is not issue.