summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2021-01-01 14:17:38 -0500
committerMike Pagano <mpagano@gentoo.org>2021-01-01 14:17:38 -0500
commitb622a2ec935dd8d9e60a2c92bcbacc5e57f5e9c7 (patch)
tree0733bcd129a4868dd1b1d3ece2adcf330bab1f71 /eclass
parentmedia-video/pipewire: Drop 0.2.7 (diff)
downloadgentoo-b622a2ec935dd8d9e60a2c92bcbacc5e57f5e9c7.tar.gz
gentoo-b622a2ec935dd8d9e60a2c92bcbacc5e57f5e9c7.tar.bz2
gentoo-b622a2ec935dd8d9e60a2c92bcbacc5e57f5e9c7.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index cad7307dc06f..dccd39ec8f2f 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