use uuname -l to get local node name

This commit is contained in:
dbucklin 2019-03-29 22:24:35 -04:00
parent 1ffd7292e6
commit 9b9430edbe
1 changed files with 1 additions and 1 deletions

2
gab
View File

@ -11,7 +11,7 @@ help_text=$'GAB - A simple chat interface\n\nsyntax: gab [flag] [value]\n\nflag
file_path=/var/spool/uucppublic/chat.txt
title="GAB v1.0"
last_date="Last message: $(date -r $file_path)"
HOST=`grep "nodename" /etc/uucp/config | tail -n1 | cut -f 2`
HOST=$(uuname -l)
if [ -z "$1" ]
then