Fix broken "show_interfaces" script (take 2)

This commit is contained in:
bergware
2024-07-24 13:57:00 +02:00
parent 5565c02f74
commit 71dc414592
2 changed files with 3 additions and 3 deletions
@@ -9,10 +9,10 @@ CALLER="show"
if check && [[ $1 == ip ]]; then
IP=()
for NET in $BIND; do
IP+=("$NET#[$(echo $(show dev $NET)|xargs)]")
IP+=("$NET [$(echo $(show dev $NET)|xargs)]")
done
BIND=${IP[@]}
fi
# return list
echo ${BIND// /#}
echo $BIND