From c5a17e1531a506b84aad7010133c761e8160ba22 Mon Sep 17 00:00:00 2001 From: Jenny Li Date: Thu, 9 Dec 2021 22:03:07 +0800 Subject: [PATCH] [skip ci] fix get author email (#13122) Signed-off-by: Jenny Li --- tests/scripts/get_author_email.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/get_author_email.sh b/tests/scripts/get_author_email.sh index 9937c24a01..612b62345c 100755 --- a/tests/scripts/get_author_email.sh +++ b/tests/scripts/get_author_email.sh @@ -3,7 +3,7 @@ set -e function get_author_email(){ email=$(git --no-pager show -s --format=\'%ae\' HEAD ) - if [[ "${email}" == 'nobody@nowhere' ]]; then + if [[ "${email}" == \'nobody@nowhere\' ]]; then email=$(git --no-pager show -s --format=\'%ae\' HEAD^ ) fi echo ${email} | sed $'s/\'//g'