diff options
-rw-r--r-- | meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh index 9e01d4a6f9..4bd3828213 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh +++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh @@ -55,8 +55,8 @@ gbmc_br_gw_src_update() { for route in "${!gbmc_br_gw_src_routes[@]}"; do [[ "$route" != *" src $gbmc_br_gw_src_ip "* ]] || continue echo "gBMC Bridge Updating GW source [$gbmc_br_gw_src_ip]: $route" >&2 - ip route change $route src "$gbmc_br_gw_src_ip" - unset 'gbmc_br_gw_src_routes[$route]' + ip route change $route src "$gbmc_br_gw_src_ip" && \ + unset 'gbmc_br_gw_src_routes[$route]' done } |