Only show email changed section if it was changed

Show the email section when the email has changed instead of when the
name has changed in the git setup script.
This commit is contained in:
Patrice Fournier 2024-02-15 16:17:58 -05:00 committed by Andrey Volk
parent 05310dae07
commit 3204c46deb

View File

@ -73,7 +73,7 @@ EOF
via 'git config --global user.name "$name"
EOF
[ -n "$name" ] \
[ -n "$email" ] \
&& cat 1>&2 <<EOF
Your email has been set to: $email