need to limit the logic to exact match a line containing only 0 , also add note to readme
This commit is contained in:
parent
256bf7a1d6
commit
421b179203
3 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Check for the existence of the Intel video device
|
||||
if [ -e /dev/dri ]; then
|
||||
VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v 0 | head -n 1)
|
||||
VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v '^0$' | head -n 1)
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue