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'