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" }