From 9985e6cfe91afdda6310a1681b09718acf011194 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 30 Sep 2019 09:25:39 +0300 Subject: [PATCH] pfetch: fix whoami not posix --- pfetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pfetch b/pfetch index 59d95ba..5abffcb 100755 --- a/pfetch +++ b/pfetch @@ -100,8 +100,8 @@ log() { get_title() { # Username is retrieved by first checking '$USER' with a fallback - # to the 'whoami' command. - user=${USER:-$(whoami)} + # to the 'id -un' command. + user=${USER:-$(id -un)} # Hostname is retrieved by first checking '$HOSTNAME' with a fallback # to the 'hostname' command.