Blame SOURCES/0231-40network-Fix-the-syntax-to-correct-the-judgment-sen.patch

712866
From 0b7fad28375c6156ad2d8159c3adbedef0b53740 Mon Sep 17 00:00:00 2001
712866
From: Minfei Huang <mhuang@redhat.com>
712866
Date: Mon, 1 Dec 2014 12:37:06 +0800
712866
Subject: [PATCH] 40network: Fix the syntax to correct the judgment sentence
712866
712866
In the judgment sentence, it will print the following warning message,
712866
becasuse of lacking the blank on the left of ']'.
712866
712866
/lib/net-lib.sh: line 110: [: missing `]'
712866
712866
Signed-off-by: Minfei Huang <mhuang@redhat.com>
712866
(cherry picked from commit c440d302f1cdfc0336e9086c7b9016356f961936)
712866
---
712866
 modules.d/40network/net-lib.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
5c6c2a
index f0850207..9c6b9dae 100755
712866
--- a/modules.d/40network/net-lib.sh
712866
+++ b/modules.d/40network/net-lib.sh
712866
@@ -107,7 +107,7 @@ setup_net() {
712866
     # add static route
712866
     for _p in $(getargs rd.route); do
712866
         route_to_var "$_p" || continue
712866
-        [ -n "$route_dev" ] && [ "$route_dev" != "$netif"] && continue
712866
+        [ -n "$route_dev" ] && [ "$route_dev" != "$netif" ] && continue
712866
         ip route add "$route_mask" ${route_gw:+via "$route_gw"} ${route_dev:+dev "$route_dev"}
712866
         if strstr ":" "$route_mask"; then
712866
             printf -- "%s\n" "$route_mask ${route_gw:+via $route_gw} ${route_dev:+dev $route_dev}" \