Changed variable name.
This commit is contained in:
+4
-4
@@ -132,7 +132,7 @@ detect_graphics() {
|
||||
|
||||
# Brand
|
||||
for b in Intel AMD NVIDIA; do
|
||||
if echo "\${line}" | grep -i "\${b}" >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}"; then
|
||||
if echo "\${gpu}" | grep -i "\${b}" >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}"; then
|
||||
brand="\${b}"
|
||||
fi
|
||||
done
|
||||
@@ -147,7 +147,7 @@ detect_graphics() {
|
||||
fi
|
||||
|
||||
# Product name
|
||||
product="\${line#*:}"
|
||||
product="\${gpu#*:}"
|
||||
product="\${product#*: }"
|
||||
|
||||
# Form factor
|
||||
@@ -155,14 +155,14 @@ detect_graphics() {
|
||||
integrated="false"
|
||||
fi
|
||||
if [[ "\${brand}" == "Intel" ]]; then
|
||||
if echo "\${line}" | grep -e "HD Graphics" -e "Xe"; then
|
||||
if echo "\${gpu}" | grep -e "HD Graphics" -e "Xe"; then
|
||||
integrated="true"
|
||||
else
|
||||
integrated="false"
|
||||
fi
|
||||
fi
|
||||
if [[ "\${brand}" == "AMD" ]]; then
|
||||
if echo "\${line}" | grep "Mobile"; then
|
||||
if echo "\${gpu}" | grep "Mobile"; then
|
||||
integrated="true"
|
||||
else
|
||||
integrated="false"
|
||||
|
||||
Reference in New Issue
Block a user