Changed variable name.

This commit is contained in:
Raphaël Numbus
2026-05-25 21:14:21 +02:00
parent e77174e595
commit 74e5211bee
+4 -4
View File
@@ -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"