Skip to content

Commit 9f63f90

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Apparently json doesn't like '
1 parent 2c9612c commit 9f63f90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/test/travis-ci/functions.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ die() { echo "E: ${1}" 1>&2; exit ${2:-1}; }
99
set_status()
1010
{
1111

12-
local json="
12+
local json=$(<<< "
1313
{
1414
'state': '${1}',
1515
'description': '${2}',
1616
'context': 'travis-ci/${TRAVIS_JOB_NAME}',
1717
'target_url': 'https://travis-ci.org/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID}'
18-
}"
18+
}" tr "'" '"')
19+
20+
<<< "${json}" jq .
1921

2022
curl --verbose --user "${MBED_BOT}" --request POST \
2123
"https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}" \

0 commit comments

Comments
 (0)