Removed unnecessary STDOUT and STDERR redirections

This commit is contained in:
Raphaël Numbus
2026-05-28 09:40:17 +02:00
parent 26441e5130
commit 35fbe3ee12
+3 -3
View File
@@ -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