Removed unnecessary STDOUT and STDERR redirections
This commit is contained in:
+3
-3
@@ -179,7 +179,7 @@ detect_corals() {
|
|||||||
local corals="[]"
|
local corals="[]"
|
||||||
|
|
||||||
# Check PCIe Coral (Google ID 1ac1:089a)
|
# 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
|
local pcie_count
|
||||||
pcie_count=\$(lspci -nn | grep -ic "1ac1:089a")
|
pcie_count=\$(lspci -nn | grep -ic "1ac1:089a")
|
||||||
for ((i=1; i<=pcie_count; i++)); do
|
for ((i=1; i<=pcie_count; i++)); do
|
||||||
@@ -189,7 +189,7 @@ detect_corals() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check USB Coral (Google ID 18d1:9302)
|
# 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
|
local usb_count
|
||||||
usb_count=\$(lsusb | grep -ic "18d1:9302")
|
usb_count=\$(lsusb | grep -ic "18d1:9302")
|
||||||
for ((i=1; i<=usb_count; i++)); do
|
for ((i=1; i<=usb_count; i++)); do
|
||||||
@@ -224,7 +224,7 @@ detect_zigbee() {
|
|||||||
detect_network() {
|
detect_network() {
|
||||||
local networks="[]"
|
local networks="[]"
|
||||||
local default_iface
|
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
|
for iface_path in /sys/class/net/*; do
|
||||||
[[ -e "\$iface_path" ]] || continue
|
[[ -e "\$iface_path" ]] || continue
|
||||||
|
|||||||
Reference in New Issue
Block a user