fixed macs array getting cleared as it was built

This commit is contained in:
alanweinstock 2025-02-26 21:56:19 -08:00
parent f6bcfc9a4c
commit 45085f2393

View file

@ -800,7 +800,6 @@ for device in $(ls /sys/class/net/ 2>/dev/null | grep -v "$filtered_adapters");
ifups+=("down")
fi
if [ -f /sys/class/net/${device}/address ]; then
macs=()
macs+=("$(cat /sys/class/net/${device}/address)")
else
macs+=("unknown")