[F] Fix shellcheck SC2181 with PR dylanaraps/neofetch#2293

This commit is contained in:
Azalea Gui 2023-02-17 17:08:53 -05:00
parent 8e753e5f42
commit a35b03865f
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B

View file

@ -1643,8 +1643,7 @@ get_model() {
Solaris|illumos) Solaris|illumos)
model=$(prtconf -b | awk -F':' '/banner-name/ {printf $2}') model=$(prtconf -b | awk -F':' '/banner-name/ {printf $2}')
virt=$(/usr/bin/uname -V) if virt=$(/usr/bin/uname -V) && [[ "$virt" != "non-virtualized" ]]; then
if [ $? == 0 ] && [ "$virt" != "non-virtualized" ]; then
model="${model:-$(uname -i)} (${virt})" model="${model:-$(uname -i)} (${virt})"
fi fi
;; ;;