ci(aio): correctly serialize commit messages with "double-quotes" (#19183)

PR Close #19183
This commit is contained in:
George Kalpakas 2017-09-13 17:21:20 +03:00 committed by Igor Minar
parent 79c7fe05c6
commit 23f2bea353
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ addMessage() {
# because $TRAVIS_COMMIT_RANGE will contain the previous SHA which will not be in the # because $TRAVIS_COMMIT_RANGE will contain the previous SHA which will not be in the
# force push or commit, hence we default to last commit. # force push or commit, hence we default to last commit.
message=$(git log --oneline $TRAVIS_COMMIT_RANGE -- || git log --oneline -n1) message=$(git log --oneline $TRAVIS_COMMIT_RANGE -- || git log --oneline -n1)
message=$(echo $message | sed 's/"/\\"/g' | sed 's/\\/\\\\/g') message=$(echo $message | sed 's/\\/\\\\/g' | sed 's/"/\\"/g')
payloadData="$payloadData\"message\": \"$message\"" payloadData="$payloadData\"message\": \"$message\""
} }