aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-30 09:25:39 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-30 09:25:39 +0300
commit9985e6cfe91afdda6310a1681b09718acf011194 (patch)
tree67d5f2267418f26a7e268c21fc2898d65b8a3507
parent0977e5f1a1772b6b22d81624bf5f047d3fa3fc23 (diff)
downloadpfetch-9985e6cfe91afdda6310a1681b09718acf011194.tar.gz
pfetch: fix whoami not posix
-rwxr-xr-xpfetch4
1 files 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.