From 6558b34254d9eb6b974e96e410555435b13e52f1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 9 Mar 2020 23:41:13 +0200 Subject: [PATCH] irix: kernel information --- pfetch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pfetch b/pfetch index 4058c39..2c8ee97 100755 --- a/pfetch +++ b/pfetch @@ -25,7 +25,7 @@ log() { # Construct the information string. out="[3${PF_COL1-4};1m${name}" 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'.