From 74e5211bee17d46a178c4492cdaa86e8cc67434d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Mon, 25 May 2026 21:14:21 +0200 Subject: [PATCH] Changed variable name. --- script/deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/deploy.sh b/script/deploy.sh index 364998d..16392a4 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -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"