Portability: use `uname -n` instead of `hostname`.

`hostname` is not available by default on some modern Linux distributions
(eg. Arch Linux), whereas `uname -n` is defined by POSIX, so guaranteed.
pull/6194/head
Geert Hendrickx 2025-01-10 12:39:30 +01:00
parent f981c782bb
commit b826123d98
No known key found for this signature in database
GPG Key ID: CD718C1F95AD44EA
1 changed files with 1 additions and 1 deletions

View File

@ -6813,7 +6813,7 @@ _send_notify() {
_nsource="$NOTIFY_SOURCE"
if [ -z "$_nsource" ]; then
_nsource="$(hostname)"
_nsource="$(uname -n)"
fi
_nsubject="$_nsubject by $_nsource"