diff --git a/install-zaneyos.sh b/install-zaneyos.sh index 3060e09..560dd4d 100755 --- a/install-zaneyos.sh +++ b/install-zaneyos.sh @@ -141,13 +141,13 @@ has_vm=false if lspci | grep -qi 'vga\|3d\|display'; then while read -r line; do - if echo "$line" | grep -qi 'nvidia'; then + if echo "$line" | grep -Eqi '\b(nvidia)\b'; then has_nvidia=true - elif echo "$line" | grep -qi 'amd\|ati\|advanced micro devices'; then + elif echo "$line" | grep -Eqi '\b(amd|ati|advanced micro devices)\b'; then has_amd=true - elif echo "$line" | grep -qi 'intel'; then + elif echo "$line" | grep -Eqi '\b(intel)\b'; then has_intel=true - elif echo "$line" | grep -qi 'virtio\|vmware'; then + elif echo "$line" | grep -Eqi '\b(virtio|vmware)\b'; then has_vm=true fi done < <(lspci | grep -i 'vga\|3d\|display')