diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-30 09:25:39 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-30 09:25:39 +0300 |
| commit | 9985e6cfe91afdda6310a1681b09718acf011194 (patch) | |
| tree | 67d5f2267418f26a7e268c21fc2898d65b8a3507 | |
| parent | 0977e5f1a1772b6b22d81624bf5f047d3fa3fc23 (diff) | |
| download | pfetch-9985e6cfe91afdda6310a1681b09718acf011194.tar.gz | |
pfetch: fix whoami not posix
| -rwxr-xr-x | pfetch | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |
