From f7235a380065092cacf65f15841eb98f6c52c1b4 Mon Sep 17 00:00:00 2001 From: Richard Samuels Date: Mon, 3 May 2021 09:03:26 -0400 Subject: SERVER-55626 Extract normal shell scripts from evergreen.yml part 4 --- evergreen/commit_message_validate.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 evergreen/commit_message_validate.sh (limited to 'evergreen/commit_message_validate.sh') diff --git a/evergreen/commit_message_validate.sh b/evergreen/commit_message_validate.sh new file mode 100644 index 00000000000..64883e98a9c --- /dev/null +++ b/evergreen/commit_message_validate.sh @@ -0,0 +1,20 @@ +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +. "$DIR/prelude.sh" + +cd src + +set -o verbose +set -o errexit +if [ "${is_commit_queue}" = "true" ]; then + # Since `commit_message` is an evergreen expansion, we need a way to ensure we + # properly deal with any special characters that could cause issues (like "). To + # do this, we will write it out to a file, then read that file into a variable. + cat >commit_message.txt <