diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2020-03-09 23:41:13 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2020-03-09 23:41:13 +0200 |
| commit | 6558b34254d9eb6b974e96e410555435b13e52f1 (patch) | |
| tree | de6ca0007404d9802ebde2fdd537bb2674220397 | |
| parent | 542b6af2846bb0b04ad9554cc605d1ef34a05fbf (diff) | |
| download | pfetch-6558b34254d9eb6b974e96e410555435b13e52f1.tar.gz | |
irix: kernel information
| -rwxr-xr-x | pfetch | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -25,7 +25,7 @@ log() { # Construct the information string. out="[3${PF_COL1-4};1m${name}[m" out="$out${PF_SEP}[$((info_length-${#name}))C" - out="$out[3${PF_COL2-7}m${info}" + out="$out[3${PF_COL2-7}m${info:-?}" } get_title() { @@ -216,7 +216,12 @@ get_kernel() { case $os in # Don't print kernel output on some systems as the # OS name includes it. - *BSD*|Haiku|Minix|IRIX) ;; + *BSD*|Haiku|Minix) ;; + + IRIX) + kernel=$(uname -vR) + kernel=${kernel#* } + ;; *) # '$kernel' is the cached output of 'uname -r'. |
