aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2021-03-24 17:42:40 -0700
committerPatrick McLean <chutzpah@gentoo.org>2021-03-24 17:45:41 -0700
commit7ff5d213660e5df80aba8782e5cfe4373416ed86 (patch)
treec152c0fd73f7fbbe5b525b068e38db0ca1df245d
parentnet/dummy.sh: Add support for network namespaces (diff)
downloadnetifrc-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.sh2
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