GPU: Use arithmetic test
This commit is contained in:
parent
988c0b29a7
commit
d74a7ce4e9
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -969,7 +969,7 @@ get_gpu() {
|
|||
gpus=($(lspci -mm | awk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}'))
|
||||
|
||||
# Number the GPUs if more than one exists.
|
||||
[[ "${#gpus[@]}" > 1 ]] && gpu_num=0
|
||||
(( "${#gpus[@]}" > 1 )) && gpu_num=0
|
||||
|
||||
for gpu in "${gpus[@]}"; do
|
||||
case "$gpu" in
|
||||
|
|
Loading…
Reference in a new issue