1 |
commit: 5c989bfbac65b9f56c9a73c3380d8a735913cdf1 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 21 05:22:32 2019 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 21 05:32:27 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=5c989bfb |
7 |
|
8 |
init.d/net.lo.in: shellcheck: arrays |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
init.d/net.lo.in | 6 +++--- |
13 |
1 file changed, 3 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/init.d/net.lo.in b/init.d/net.lo.in |
16 |
index e49278f..c53d3ea 100644 |
17 |
--- a/init.d/net.lo.in |
18 |
+++ b/init.d/net.lo.in |
19 |
@@ -82,7 +82,7 @@ _array_helper() |
20 |
|
21 |
_get_array() |
22 |
{ |
23 |
- local _a= |
24 |
+ local _a='' |
25 |
if [ -n "${BASH}" ]; then |
26 |
# shellcheck disable=SC2039 |
27 |
case "$(declare -p "$1" 2>/dev/null)" in |
28 |
@@ -99,7 +99,7 @@ _get_array() |
29 |
esac |
30 |
fi |
31 |
|
32 |
- _array_helper $1 |
33 |
+ _array_helper "$1" |
34 |
} |
35 |
|
36 |
# Flatten bash arrays to simple strings |
37 |
@@ -122,7 +122,7 @@ _flatten_array() |
38 |
esac |
39 |
fi |
40 |
|
41 |
- _array_helper $1 |
42 |
+ _array_helper "$1" |
43 |
} |
44 |
|
45 |
_wait_for_presence() |