From b89c509aca2cbee12d103d8e4991da5f0cf6ee16 Mon Sep 17 00:00:00 2001 From: tumpura <51165533+tumpura@users.noreply.github.com> Date: Tue, 18 Aug 2020 22:12:34 +0300 Subject: [PATCH] change where hostname is read. --- fet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fet.sh b/fet.sh index 887540b..f476f4f 100755 --- a/fet.sh +++ b/fet.sh @@ -105,7 +105,7 @@ print() { echo -read -r host < /etc/hostname +read -r host < /proc/sys/kernel/hostname printf '%7s@%s\n' "$USER" "$host" print os "$ID"