[skip ci] fix get author email (#13122)

Signed-off-by: Jenny Li <jing.li@zilliz.com>
pull/13116/merge
Jenny Li 2021-12-09 22:03:07 +08:00 committed by GitHub
parent 2c6c74669f
commit c5a17e1531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'