aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-04-20 22:22:32 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2019-04-20 22:32:27 -0700
commit5c989bfbac65b9f56c9a73c3380d8a735913cdf1 (patch)
tree20181330dddb7c2e1f33ece00353f6a88da32089 /init.d
parentinit.d/net.lo.in: shellcheck: depend() (diff)
downloadnetifrc-5c989bfbac65b9f56c9a73c3380d8a735913cdf1.tar.gz
netifrc-5c989bfbac65b9f56c9a73c3380d8a735913cdf1.tar.bz2
netifrc-5c989bfbac65b9f56c9a73c3380d8a735913cdf1.zip
init.d/net.lo.in: shellcheck: arrays
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'init.d')
-rw-r--r--init.d/net.lo.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index e49278f..c53d3ea 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -82,7 +82,7 @@ _array_helper()
_get_array()
{
- local _a=
+ local _a=''
if [ -n "${BASH}" ]; then
# shellcheck disable=SC2039
case "$(declare -p "$1" 2>/dev/null)" in
@@ -99,7 +99,7 @@ _get_array()
esac
fi
- _array_helper $1
+ _array_helper "$1"
}
# Flatten bash arrays to simple strings
@@ -122,7 +122,7 @@ _flatten_array()
esac
fi
- _array_helper $1
+ _array_helper "$1"
}
_wait_for_presence()