From 8752e4ff1645566c1571dd831f9ee732db37bdc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Mon, 25 May 2026 21:26:48 +0200 Subject: [PATCH] Debugging. --- script/deploy.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/script/deploy.sh b/script/deploy.sh index 86547f5..8d3fb42 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -124,10 +124,9 @@ detect_graphics() { local integrated local pci_addr - OLD_IFS="\$IFS" - IFS=\$'n' - while read -r gpu; do + echo \$gpu >> "${REMOTE_STDERR}" + pci_addr="\$(lspci | grep VGA | head -c 7)" # Brand @@ -180,9 +179,7 @@ detect_graphics() { done < <(lspci | grep -e "VGA" -e "3D" >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}") - IFS="\${OLD_IFS}" - - echo "\$gpus" >> ${REMOTE_STDERR} + echo "\$gpus" >> "${REMOTE_STDERR}" append_to_report "graphics" "\$gpus" }