From 7ff5d213660e5df80aba8782e5cfe4373416ed86 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Wed, 24 Mar 2021 17:42:40 -0700 Subject: functions.sh: Fix non-netns case for ip command Attempt to wrap ip commands with a netns would fail sometimes when there is no netns defined. This fixes to not use the variable when it is not needed. Signed-off-by: Patrick McLean --- sh/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/functions.sh b/sh/functions.sh index d4a514b..96df289 100644 --- a/sh/functions.sh +++ b/sh/functions.sh @@ -164,7 +164,7 @@ _netns() case "${1}" in ip) shift - "${ip}" "${@}" + ip "${@}" ;; glob) shift -- cgit v1.2.3-65-gdbad