summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jankowski <shasta@toxcorp.com>2017-11-21 03:32:08 +0100
committerRobby Workman <rworkman@slackware.com>2017-11-21 00:07:59 -0600
commite21625c5bb1b03cad355590021c95009ab4246c5 (patch)
tree32acdb5909972462a7f2bbcbb5e6ec1c45127773
parent5d8fad3dc13963fa19ca02913f8c4f12ab3321c1 (diff)
downloadslacknetsetup-e21625c5bb1b03cad355590021c95009ab4246c5.tar.xz
rc.inet1: Use ${array[*]} not ${array[@]} to produce a string
This is the correct usage to produce one string from all elements of an array. foo[0]=b foo[1]=a foo[2]=r "${foo[@]}" here would mean "b" "a" "r" "${foo[*]}" however: "b a r", and that's what we mean when logging it. Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r--rc.inet12
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index a70430e..89c006f 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -40,7 +40,7 @@ do
i=$(($i+1))
done
if [ "$DEBUG_ETH_UP" = "yes" ]; then
- echo "/etc/rc.d/rc.inet1: List of interfaces: '${IFNAME[@]}'" | $LOGGER
+ echo "/etc/rc.d/rc.inet1: List of interfaces: '${IFNAME[*]}'" | $LOGGER
fi
######################