From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7DF7158083 for ; Sun, 1 Sep 2024 09:21:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D7ADE2AB0; Sun, 1 Sep 2024 09:21:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E862DE2AB0 for ; Sun, 1 Sep 2024 09:21:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32537343028 for ; Sun, 1 Sep 2024 09:21:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9272A1671 for ; Sun, 1 Sep 2024 09:21:52 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1725182492.97a79cfd068a6cc07e9feed0ac5b71f64347ae4a.sam@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 97a79cfd068a6cc07e9feed0ac5b71f64347ae4a X-VCS-Branch: master Date: Sun, 1 Sep 2024 09:21:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b5b74e77-6cab-4214-87e1-79929e673150 X-Archives-Hash: 316ad6fd566f2aaf366b28b4bd336487 commit: 97a79cfd068a6cc07e9feed0ac5b71f64347ae4a Author: Sam James gentoo org> AuthorDate: Sun Sep 1 09:21:32 2024 +0000 Commit: Sam James gentoo 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 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}"