1 |
commit: b9b82d586cf03766f568b91156837d1b7861fb09 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 21 05:22:44 2019 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 21 05:33:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=b9b82d58 |
7 |
|
8 |
init.d/net.lo.in: shellcheck: _which() |
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 2999a96..77f0d8f 100644 |
17 |
--- a/init.d/net.lo.in |
18 |
+++ b/init.d/net.lo.in |
19 |
@@ -243,7 +243,7 @@ _which() |
20 |
OIFS="$IFS" |
21 |
IFS=: |
22 |
for i in $PATH ; do |
23 |
- [ -x $i/$1 ] && echo $i/$1 && break |
24 |
+ [ -x "$i/$1" ] && echo "$i/$1" && break |
25 |
done |
26 |
IFS=$OIFS |
27 |
} |