commit:     97a79cfd068a6cc07e9feed0ac5b71f64347ae4a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  1 09:21:32 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep  1 09:21:32 2024 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=97a79cfd

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 <AT> gentoo.org>

 net/iproute2.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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}"

Reply via email to