From d85c56ff33d5276c4267c3df627eaf1a2b07d1f5 Mon Sep 17 00:00:00 2001 From: Boria138 Date: Sat, 2 Sep 2023 14:38:59 +0600 Subject: [PATCH] Removed the redundant elif --- data_from_portwine/scripts/functions_helper | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 2237c7b4..676d6f6b 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -808,12 +808,9 @@ nvidia_check_rtx () { return 1 } -# Hybrid graphics (Intel + NVIDIA) -if echo "$lspci_output" | grep -i "intel" && echo "$lspci_output" | grep -i "nvidia"; then - export PW_PRIME_RENDER_OFFLOAD=1 -# Hybrid graphics (AMD + NVIDIA) -elif echo "$lspci_output" | grep -i "amd" && echo "$lspci_output" | grep -i "nvidia"; then - export PW_PRIME_RENDER_OFFLOAD=1 +# Hybrid graphics detect +if echo "$lspci_output" | grep -i "nvidia" && echo "$lspci_output" | grep -i "intel") || (echo "$lspci_output" | grep -i "nvidia" && echo "$lspci_output" | grep -i "amd"); then + export PW_PRIME_RENDER_OFFLOAD=1 fi pw_init_db () {