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 7C967138335 for ; Sun, 21 Apr 2019 05:34:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6AF41E0AC2; Sun, 21 Apr 2019 05:34:05 +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 5558DE0AC2 for ; Sun, 21 Apr 2019 05:34:05 +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 2A4FF341BBB for ; Sun, 21 Apr 2019 05:34:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CC96D5BD for ; Sun, 21 Apr 2019 05:34:02 +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: <1555824634.bb833bd3afb35960a2faa879220697ea1f596546.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: bb833bd3afb35960a2faa879220697ea1f596546 X-VCS-Branch: master Date: Sun, 21 Apr 2019 05:34:02 +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: 2249d3d2-bd3c-4ebd-87d4-76c92fb9b7e0 X-Archives-Hash: 39a480eee1926ed2833ec9cd4b771c49 commit: bb833bd3afb35960a2faa879220697ea1f596546 Author: Robin H. Johnson gentoo org> AuthorDate: Sun Apr 21 05:19:44 2019 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sun Apr 21 05:30:34 2019 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=bb833bd3 init.d/net.lo.in: shellcheck: _gen_module_list(), _load_modules() Signed-off-by: Robin H. Johnson gentoo.org> init.d/net.lo.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 3afe046..d9a4d24 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -10,6 +10,7 @@ _config_vars="config metric routes" [ -z "${IN_BACKGROUND}" ] && IN_BACKGROUND="NO" +# shellcheck disable=SC2034 description="Configures network interfaces." # Handy var so we don't have to embed new lines everywhere for array splitting @@ -20,6 +21,7 @@ __IFS=" : ${INIT:=openrc} if [ -f "$SHDIR/functions.sh" ]; then + # shellcheck disable=SC1090 . "$SHDIR/functions.sh" else echo "$SHDIR/functions.sh missing. Exiting" @@ -345,6 +347,7 @@ _gen_module_list() for MODULE in "${MODULESDIR}"/*.sh; do sh -n "${MODULE}" || continue + # shellcheck disable=SC1090 . "${MODULE}" || continue MODULE=${MODULE#${MODULESDIR}/} MODULE=${MODULE%.sh} @@ -414,8 +417,10 @@ _load_modules() # Ensure our list is up to date _gen_module_list false + # shellcheck disable=SC1090 if ! . "${MODULESLIST}"; then _gen_module_list true + # shellcheck disable=SC1090 . "${MODULESLIST}" fi @@ -461,6 +466,7 @@ _load_modules() MODULES="${MODULES}${MODULES:+ }${mod}" # Now load and wrap our functions + # shellcheck disable=SC1090 if ! . "${MODULESDIR}/${mod}.sh"; then eend 1 "${RC_SVCNAME}: error loading module \`${mod}'" exit 1