The lspci output is now not displayed in the console when portproton is started
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user