From d74a7ce4e9e5852b2decb22cafa4c7f729ed02ec Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 22 Dec 2016 13:01:04 +1100 Subject: [PATCH] GPU: Use arithmetic test --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index c44091de..26b7f885 100755 --- a/neofetch +++ b/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