milvus/tests/scripts/get_author_email.sh
Jenny Li c5a17e1531
[skip ci] fix get author email (#13122)
Signed-off-by: Jenny Li <jing.li@zilliz.com>
2021-12-09 22:03:07 +08:00

11 lines
285 B
Bash
Executable File

#!/bin/bash
set -e
function get_author_email(){
email=$(git --no-pager show -s --format=\'%ae\' HEAD )
if [[ "${email}" == \'nobody@nowhere\' ]]; then
email=$(git --no-pager show -s --format=\'%ae\' HEAD^ )
fi
echo ${email} | sed $'s/\'//g'
}
get_author_email