pfetch: fix whoami not posix
This commit is contained in:
parent
0977e5f1a1
commit
9985e6cfe9
4
pfetch
4
pfetch
|
@ -100,8 +100,8 @@ log() {
|
||||||
|
|
||||||
get_title() {
|
get_title() {
|
||||||
# Username is retrieved by first checking '$USER' with a fallback
|
# Username is retrieved by first checking '$USER' with a fallback
|
||||||
# to the 'whoami' command.
|
# to the 'id -un' command.
|
||||||
user=${USER:-$(whoami)}
|
user=${USER:-$(id -un)}
|
||||||
|
|
||||||
# Hostname is retrieved by first checking '$HOSTNAME' with a fallback
|
# Hostname is retrieved by first checking '$HOSTNAME' with a fallback
|
||||||
# to the 'hostname' command.
|
# to the 'hostname' command.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user