]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Scripts] Only show email changed section if it was changed
authorPatrice Fournier <patrice.fournier@ifax.com>
Tue, 17 Dec 2024 17:53:51 +0000 (12:53 -0500)
committerGitHub <noreply@github.com>
Tue, 17 Dec 2024 17:53:51 +0000 (20:53 +0300)
Show the email section when the email has changed instead of when the
name has changed in the git setup script.

scripts/setup-git.sh

index 54d30219d65d1a6936874806733e1a29c2f9b849..ffdc47dfe91989c1bc51b35658d9ac9857370686 100755 (executable)
@@ -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