From 23f2bea353731092d10651ff0a5d108a2a7f0404 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 13 Sep 2017 17:21:20 +0300 Subject: [PATCH] ci(aio): correctly serialize commit messages with "double-quotes" (#19183) PR Close #19183 --- scripts/ci/payload-size.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/payload-size.sh b/scripts/ci/payload-size.sh index 0bade287e5..8004267cac 100644 --- a/scripts/ci/payload-size.sh +++ b/scripts/ci/payload-size.sh @@ -43,7 +43,7 @@ addMessage() { # 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. 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\"" }