diff options
author | 2021-03-24 17:42:40 -0700 | |
---|---|---|
committer | 2021-03-24 17:45:41 -0700 | |
commit | 7ff5d213660e5df80aba8782e5cfe4373416ed86 (patch) | |
tree | c152c0fd73f7fbbe5b525b068e38db0ca1df245d | |
parent | net/dummy.sh: Add support for network namespaces (diff) | |
download | netifrc-7ff5d213660e5df80aba8782e5cfe4373416ed86.tar.gz netifrc-7ff5d213660e5df80aba8782e5cfe4373416ed86.tar.bz2 netifrc-7ff5d213660e5df80aba8782e5cfe4373416ed86.zip |
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 <chutzpah@gentoo.org>
-rw-r--r-- | sh/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |