[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)
|
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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue