need to limit the logic to exact match a line containing only 0 , also add note to readme

This commit is contained in:
thelamer 2019-05-20 20:37:16 -07:00
parent 256bf7a1d6
commit 421b179203
3 changed files with 3 additions and 1 deletions

View file

@ -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