From 55a8ae9666c8f9c0eadc09d7d055fb1ade6c499c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Mon, 11 Jan 2021 14:02:55 +0100 Subject: [PATCH] eclass/kernel-2-src-prepare-overlay.eclass: Handle stricter bash 5.1 expansion rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- eclass/kernel-2-src-prepare-overlay.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/kernel-2-src-prepare-overlay.eclass b/eclass/kernel-2-src-prepare-overlay.eclass index 955ef95..ab42e4a 100644 --- a/eclass/kernel-2-src-prepare-overlay.eclass +++ b/eclass/kernel-2-src-prepare-overlay.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: kernel-2-src-prepare-overlay.eclass @@ -1149,7 +1149,7 @@ unipatch() { if echo ${i} | grep -qs -e "\.tar" -e "\.tbz" -e "\.tgz" ; then if [ -n "${UNIPATCH_STRICTORDER}" ]; then unset z - STRICT_COUNT=$((10#${STRICT_COUNT} + 1)) + STRICT_COUNT=$((10#${STRICT_COUNT:=0} + 1)) for((y=0; y<$((6 - ${#STRICT_COUNT})); y++)); do z="${z}0"; done @@ -1198,7 +1198,7 @@ unipatch() { if [ -n "${UNIPATCH_STRICTORDER}" ]; then unset z - STRICT_COUNT=$((10#${STRICT_COUNT} + 1)) + STRICT_COUNT=$((10#${STRICT_COUNT:=0} + 1)) for((y=0; y<$((6 - ${#STRICT_COUNT})); y++)); do z="${z}0"; done