mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-10-14 10:29:32 +00:00
pfetch: fix whoami not posix
This commit is contained in:
1 parent
0977e5f1a1
commit
9985e6cfe9
1 file changed
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user