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