[F] Fix shellcheck SC2181 with PR dylanaraps/neofetch#2293
This commit is contained in:
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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user