From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C4A8A138334 for ; Sun, 21 Apr 2019 05:34:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28DD4E0ADA; Sun, 21 Apr 2019 05:34:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10ED7E0ADA for ; Sun, 21 Apr 2019 05:34:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0B116341BC7 for ; Sun, 21 Apr 2019 05:34:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2BE635C1 for ; Sun, 21 Apr 2019 05:34:03 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1555824747.5c989bfbac65b9f56c9a73c3380d8a735913cdf1.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: init.d/ X-VCS-Repository: proj/netifrc X-VCS-Files: init.d/net.lo.in X-VCS-Directories: init.d/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 5c989bfbac65b9f56c9a73c3380d8a735913cdf1 X-VCS-Branch: master Date: Sun, 21 Apr 2019 05:34:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 33618c81-a6a1-4deb-aaa6-e280debe48bb X-Archives-Hash: a135cb26fcb9e188edba40b35777cf1a commit: 5c989bfbac65b9f56c9a73c3380d8a735913cdf1 Author: Robin H. Johnson gentoo org> AuthorDate: Sun Apr 21 05:22:32 2019 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sun Apr 21 05:32:27 2019 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=5c989bfb init.d/net.lo.in: shellcheck: arrays Signed-off-by: Robin H. Johnson gentoo.org> init.d/net.lo.in | 6 +++--- 1 file 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()