diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 8de2e074..faa288b8 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -818,7 +818,7 @@ pw_check_and_download_plugins () { } check_nvidia_rtx () { - if echo "$LSPCI_VGA" | grep -i "nvidia" ; then + if [[ $(echo "$LSPCI_VGA" | grep -i "nvidia") ]] ; then # Turing (without nvidia 16XX) [[ "$LSPCI_VGA" == *TU[0-9]* ]] && [[ "$LSPCI_VGA" != *TU11[6-7]* ]] && return 0 # Ampere @@ -830,7 +830,7 @@ check_nvidia_rtx () { } check_hybrid_graphicks () { - if echo "$LSPCI_VGA" | grep -i nvidia | grep -iE '(intel|amd)' + if [[ $(echo "$LSPCI_VGA" | grep -i nvidia | grep -i -E '(intel|amd)') ]] then return 0 else return 1 fi