From a35b03865f1f6c149e256f97bda463116e6fdd30 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Fri, 17 Feb 2023 17:08:53 -0500 Subject: [PATCH] [F] Fix shellcheck SC2181 with PR dylanaraps/neofetch#2293 --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 2e5a7773..e1dba1b9 100755 --- a/neofetch +++ b/neofetch @@ -1643,8 +1643,7 @@ get_model() { Solaris|illumos) model=$(prtconf -b | awk -F':' '/banner-name/ {printf $2}') - virt=$(/usr/bin/uname -V) - if [ $? == 0 ] && [ "$virt" != "non-virtualized" ]; then + if virt=$(/usr/bin/uname -V) && [[ "$virt" != "non-virtualized" ]]; then model="${model:-$(uname -i)} (${virt})" fi ;;