Use shorthand for loops

This commit is contained in:
Roy Marples
2007-11-29 11:23:06 +00:00
parent 50161bef0e
commit 82df7e4584
8 changed files with 22 additions and 22 deletions

View File

@@ -112,7 +112,7 @@ bridge_post_stop() {
# Work out if we're added to a bridge for removal or not
eval set -- $(brctl show 2>/dev/null | sed -e "s/'/'\\\\''/g" -e "s/$/'/g" -e "s/^/'/g")
local line=
for line in "$@"; do
for line; do
set -- ${line}
if [ "$3" = "${IFACE}" ]; then
iface=$1