use -f instead of non-portable --fdqn option to hostname

This commit is contained in:
Paul Gardner-Stephen 2018-11-14 13:56:28 +10:30
parent 87303c3436
commit 2f6f9b26f2

View File

@ -115,7 +115,7 @@ get_author_label() {
# Serval Project email addresses get special treatment, to reduce day-to-day # Serval Project email addresses get special treatment, to reduce day-to-day
# version string verbosity. # version string verbosity.
case "$email" in case "$email" in
'') author_label="${LOGNAME?}@$(hostname --fqdn)";; #" <-- fix Vim syntax highlighting '') author_label="${LOGNAME?}@$(hostname -f)";; #" <-- fix Vim syntax highlighting
*@servalproject.org) author_label="${email%@*}";; #" <-- fix Vim syntax highlighting *@servalproject.org) author_label="${email%@*}";; #" <-- fix Vim syntax highlighting
*) author_label="$email";; *) author_label="$email";;
esac esac