forked from extern/shorewall_code
Avoid unnecessary variable expansion
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fb4b362724
commit
4d6bf8564e
@ -638,7 +638,7 @@ show_routing() {
|
||||
ip -$g_family rule list | find_tables | sort -u | while read table; do
|
||||
heading "Table $table:"
|
||||
if [ $g_family -eq 6 ]; then
|
||||
ip -$g_family -o route list table $table | grep -vF cache | sort_routes
|
||||
ip -6 -o route list table $table | grep -vF cache | sort_routes
|
||||
else
|
||||
ip -4 -o route list table $table | sort_routes
|
||||
fi
|
||||
@ -651,7 +651,7 @@ show_routing() {
|
||||
else
|
||||
heading "Routing Table"
|
||||
if [ $g_family -eq 6 ]; then
|
||||
ip -$g_family -o route list | grep -vF cache | sort_routes
|
||||
ip -6 -o route list | grep -vF cache | sort_routes
|
||||
else
|
||||
ip -4 -o route list table $table | sort_routes
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user