commit: b622a2ec935dd8d9e60a2c92bcbacc5e57f5e9c7 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Fri Jan 1 19:17:38 2021 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Fri Jan 1 19:17:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b622a2ec
kernel-2.eclass: Handle stricter bash 5.1 expansion rules Set default value in the case that STRICT_COUNT is unset. Thanks to jospezial for reporting Closes: https://bugs.gentoo.org/762319 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> eclass/kernel-2.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index cad7307dc06..dccd39ec8f2 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1158,7 +1158,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 @@ -1207,7 +1207,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
