commit:     e5a46f30deedabef5c18a587db2984a314f61071
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Jan 17 09:11:22 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 15:05:51 2023 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=e5a46f30

net/bonding.sh: Eliminate the bashism that is pattern substitution

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/net/bonding.sh b/net/bonding.sh
index 1757a89..6db90fa 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -92,7 +92,7 @@ bonding_pre_start()
                if [ -n "${s}" ]; then
                        for i in $s; do
                                einfo "Adding ${n}: ${i}"
-                               _netns echo "+${i/+/}" \>"${x}" || \
+                               _netns echo "+${i#+}" \>"${x}" || \
                                eerror "Failed to add $i (${n}_${IFVAR})"
                        done
                fi

Reply via email to