From 35fbe3ee123ab44ad286cee51e5016943ac1c131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Thu, 28 May 2026 09:40:17 +0200 Subject: [PATCH] Removed unnecessary STDOUT and STDERR redirections --- script/deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/deploy.sh b/script/deploy.sh index aeb5ae8..c4930f5 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -179,7 +179,7 @@ detect_corals() { local corals="[]" # Check PCIe Coral (Google ID 1ac1:089a) - if lspci -nn | grep -iq "1ac1:089a" >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}"; then + if lspci -nn | grep -iq "1ac1:089a"; then local pcie_count pcie_count=\$(lspci -nn | grep -ic "1ac1:089a") for ((i=1; i<=pcie_count; i++)); do @@ -189,7 +189,7 @@ detect_corals() { fi # Check USB Coral (Google ID 18d1:9302) - if lsusb | grep -iq "18d1:9302" >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}"; then + if lsusb | grep -iq "18d1:9302"; then local usb_count usb_count=\$(lsusb | grep -ic "18d1:9302") for ((i=1; i<=usb_count; i++)); do @@ -224,7 +224,7 @@ detect_zigbee() { detect_network() { local networks="[]" local default_iface - default_iface=\$(ip -4 route show default >> "${REMOTE_STDOUT}" 2>> "${REMOTE_STDERR}" | awk '{print \$5}' | head -n1) + default_iface=\$(ip -4 route show default | awk '{print \$5}' | head -n1) for iface_path in /sys/class/net/*; do [[ -e "\$iface_path" ]] || continue