fix: correct bash if statement for dGPU detection (#1170)

Using '>' instead of '-gt' always returns true (as '>' is not valid with 'test'), adding the flag '-cef-disable-gpu' regardless of the device using a dGPU.
This commit is contained in:
Zeglius 2024-05-25 20:26:11 +02:00 committed by Kyle Gospodnetich
parent 357634189e
commit bb2687111f

View File

@ -14,7 +14,7 @@ fi
DGPU_OPTION=""
# If we're running this on a dGPU, disable accelerated cef
if [[ $(switcherooctl list | grep -o 'Device:' | wc -l) > 1 ]]; then
if [[ $(switcherooctl list | grep -o 'Device:' | wc -l) -gt 1 ]]; then
DGPU_OPTION="-cef-disable-gpu"
fi