diff options
author | Sam James <sam@gentoo.org> | 2024-09-01 10:21:32 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-01 10:21:32 +0100 |
commit | 97a79cfd068a6cc07e9feed0ac5b71f64347ae4a (patch) | |
tree | 55ae63b2b8b18352f67e1eca69af44c2cca9b79e | |
parent | Disable IPv6 on subdevices for bonding and bridges (diff) | |
download | netifrc-97a79cfd068a6cc07e9feed0ac5b71f64347ae4a.tar.gz netifrc-97a79cfd068a6cc07e9feed0ac5b71f64347ae4a.tar.bz2 netifrc-97a79cfd068a6cc07e9feed0ac5b71f64347ae4a.zip |
net: iproute2: fix bashism
Reported by CyberTailor at https://github.com/gentoo/netifrc/pull/53#discussion_r1740019302.
Fixes: 7c6a8de0c521ea474bccb0dbda4338ff293cdfc6
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | net/iproute2.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh index 7db7f5b..ca43496 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -290,7 +290,7 @@ _add_route() # Process dev vs nodev routes # Positional parameters are used for correct array handling - if [[ -n ${rtype} ]]; then + if [ -n ${rtype} ]; then local nodev_routes="$(service_get_value "nodev_routes")" service_set_value "nodev_routes" "${nodev_routes} ${family} route del ${rtype} ${cmd}" |