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"