milvus/tests/scripts/get_author_email.sh
Jenny Li 7113f23214
[skip ci] Update email (#13087)
Signed-off-by: Jenny Li <jing.li@zilliz.com>
2021-12-09 18:15:04 +08:00

11 lines
283 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