mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-25 15:35:17 +00:00
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:
parent
357634189e
commit
bb2687111f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user