[F] Fix shellcheck SC2181 with PR dylanaraps/neofetch#2293
This commit is contained in:
parent
8e753e5f42
commit
a35b03865f
1 changed files with 1 additions and 2 deletions
3
neofetch
3
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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue