aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-linux-automerge
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2018-04-30 14:50:55 -0500
committerAníbal Limón <anibal.limon@linaro.org>2018-04-30 14:50:55 -0500
commit0ad8aa33ed140627c916576c47dabf9250c2f430 (patch)
treef01a592d26be9a408fea8cc5bd8b6c4ef886747b /lt-qcom-linux-automerge
parent4e1a2885848d7ef3ae9be832d3dc0becedab6cc7 (diff)
lt-qcom-linux-automerge: builders.sh escape new line chars
To use in the CI notify email the contents with multiline. Change-Id: Id15813730a629f5c8b9cfa936278690cec2bc9db Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Diffstat (limited to 'lt-qcom-linux-automerge')
-rwxr-xr-xlt-qcom-linux-automerge/builders.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lt-qcom-linux-automerge/builders.sh b/lt-qcom-linux-automerge/builders.sh
index 24bbb0f7..63436cdd 100755
--- a/lt-qcom-linux-automerge/builders.sh
+++ b/lt-qcom-linux-automerge/builders.sh
@@ -91,13 +91,13 @@ EOF
export CONFIG_PATH=${AUTOMERGE_PATH}/automerge-ci.conf
fi
-AUTOMERGE_CONFIG=$(sed ':a;N;$!ba;s/\n/\\\\/g' ${CONFIG_PATH})
+AUTOMERGE_CONFIG=$(sed ':a;N;$!ba;s/\n/\\\\n/g' ${CONFIG_PATH})
# * Disable exit when fail to collect build logs
set +e
yes | ci-merge -l ${INTEGRATION_REPO_PATH} -r ${INTEGRATION_REPO_URL} -i ${INTEGRATION_BRANCH} -c ${RERERE_REPO_URL} | tee automerge.log
AUTOMERGE_EXIT_CODE=$?
-AUTOMERGE_BRANCH_FAILED=$(grep 'Merge failed' automerge.log | sed ':a;N;$!ba;s/\n/\\\\/g')
+AUTOMERGE_BRANCH_FAILED=$(grep 'Merge failed' automerge.log | sed ':a;N;$!ba;s/\n/\\\\n/g')
set -e
popd