Skip to content

Commit 2a2ec16

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Fixed status reporting.
'tr' command wasn't doing any replacement
1 parent 3f76f6e commit 2a2ec16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/test/travis-ci/functions.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ die() { echo -e "E: ${1}" 1>&2; exit "${2:-1}"; }
3232
#
3333
set_status()
3434
{
35-
local job_name=${NAME}
35+
local job_name="${NAME}"
3636
local payload=""
3737

3838
payload=$(<<< "
@@ -41,10 +41,10 @@ set_status()
4141
'description': '${2}',
4242
'context': 'travis-ci/${job_name}',
4343
'target_url': 'https://travis-ci.org/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID}'
44-
}" tr '"' '"')
44+
}" tr "'" '"')
4545

4646
curl --silent --output /dev/null --user "${MBED_BOT}" --request POST \
47-
"https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}" \
47+
"https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA:-${TRAVIS_COMMIT}}" \
4848
--data @- <<< "${payload}"
4949
}
5050

0 commit comments

Comments
 (0)