From 899b25d188dcde4bd9c6dcd08e52d052890b0293 Mon Sep 17 00:00:00 2001 From: Daniel Clavijo Coca Date: Wed, 29 Mar 2023 10:24:51 -0600 Subject: [PATCH] F OpenNebula/one-context-linux#287: Fix initial whitelines --- src/etc/one-context.d/loc-10-network.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/one-context.d/loc-10-network.d/functions b/src/etc/one-context.d/loc-10-network.d/functions index 561c65e..214c7fc 100644 --- a/src/etc/one-context.d/loc-10-network.d/functions +++ b/src/etc/one-context.d/loc-10-network.d/functions @@ -577,7 +577,7 @@ get_route_info() { route=$1 # Remove whitespaces beginning and end - route="${route# }" + route=$(echo "$route" | sed 's/^[[:space:]]*//') route=$(echo "$route" | sed 's/[[:space:]]*$//') # Parse traffic source, destination and outgoing interface