From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,MISSING_DATE,MISSING_MID, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 From: "Leonid Krivoshein" To: make-initrd@lists.altlinux.org Subject: [make-initrd] [PATCH v6 09/22] bootchain-core: use private variable name X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 24 Oct 2021 17:21:16 -0000 X-List-Received-Date: Sun, 24 Oct 2021 17:21:16 -0000 Message-ID: <20211024172116.7XoZ16nO7eCTUDJb7m0YKjbVnZC9cwoJySNq5l4aElo@z> Archived-At: List-Archive: Signed-off-by: Leonid Krivoshein --- features/bootchain-core/data/bin/bootchain-sh-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/bootchain-core/data/bin/bootchain-sh-functions b/features/bootchain-core/data/bin/bootchain-sh-functions index f337767..e73fd35 100644 --- a/features/bootchain-core/data/bin/bootchain-sh-functions +++ b/features/bootchain-core/data/bin/bootchain-sh-functions @@ -12,10 +12,10 @@ handlerdir=/lib/bootchain check_parameter() { - local v + local _v - eval "v=\"\${$1-}\"" - [ -n "$v" ] || + eval "_v=\"\${$1-}\"" + [ -n "${_v}" ] || fatal "Parameter '$1' required" } -- 2.24.1