From 4d6bf8564e8b9759558557694e57bda5396019d7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 20 Jan 2018 14:25:42 -0800 Subject: [PATCH] Avoid unnecessary variable expansion Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 0133e0c76..8d707c27d 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -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