Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/netifrc:master commit in: init.d/
Date: Sun, 21 Apr 2019 05:34:12
Message-Id: 1555824816.5df0a442c2d33f80317d91ec3ce1933aa70acc52.robbat2@OpenRC
1 commit: 5df0a442c2d33f80317d91ec3ce1933aa70acc52
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 21 05:27:33 2019 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 21 05:33:36 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=5df0a442
7
8 init.d/net.lo.in: shellcheck: _run_if()
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 init.d/net.lo.in | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/init.d/net.lo.in b/init.d/net.lo.in
16 index 30ab7fd..e1a0cab 100644
17 --- a/init.d/net.lo.in
18 +++ b/init.d/net.lo.in
19 @@ -594,7 +594,7 @@ _run_if()
20 {
21 local cmd=$1 iface=$2 ifr=${IFACE} ifv=${IFVAR}
22 # Ensure that we don't stamp on real values
23 - local IFACE= IFVAR=
24 + local IFACE='' IFVAR=''
25 shift
26 if [ -n "${iface}" ]; then
27 IFACE="${iface}"