Merge pull request #600 from SainoNamkho/master

Fix gpu info being displayed across multiple lines error.
This commit is contained in:
darealshinji
2018-11-30 13:49:54 +01:00
committed by GitHub

View File

@@ -1605,7 +1605,7 @@ detectgpu () {
# Run it only on Intel Processors if GPU is unknown
DetectIntelGPU() {
if [ -r /proc/fb ]; then
gpu=$(awk '{print $2}' /proc/fb)
gpu=$(awk 'BEGIN {ORS = " &"} {$1="";print}' /proc/fb | sed -r s/'^\s+|\s*&$'//g)
fi
case $gpu in