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 ;;