aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-02 23:10:54 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-02 23:10:54 -0400
commit52ac30c3b95a9582ac71b8c266141dd29e71e171 (patch)
treeaf823a26093a229b7e9fef380c493fb613566bde
parentuse `grep -E` instead of `egrep` (diff)
downloadbuild-docbook-catalog-52ac30c3b95a9582ac71b8c266141dd29e71e171.tar.gz
build-docbook-catalog-52ac30c3b95a9582ac71b8c266141dd29e71e171.tar.bz2
build-docbook-catalog-52ac30c3b95a9582ac71b8c266141dd29e71e171.zip
fix bad let conversion
Previous commit changing away from let and to += left a var behind. Fix that up. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xbuild-docbook-catalog8
1 files changed, 4 insertions, 4 deletions
diff --git a/build-docbook-catalog b/build-docbook-catalog
index 495de64..0ecbc1c 100755
--- a/build-docbook-catalog
+++ b/build-docbook-catalog
@@ -360,15 +360,15 @@ populate_entities() {
: $(( i += 2 ))
elif [[ ${avail[j]} < ${entities[i]} ]]; then
echo "Warning: Extra ISO entities file: ${avail[j]}"
- : $(( j += j + 1 ))
+ : $(( j += 1 ))
elif [[ ${entities[i]} < ${avail[j]} ]]; then
echo "Warning: Entities file not found: ${entities[i]}"
- : $(( i += i + 2 ))
+ : $(( i += 2 ))
elif [[ ${entities[i]} == ${avail[j]} ]]; then
xmlcatalog --noout --add "public" "${entities[i+1]}" \
"file://${isodir}/${entities[i]}" "${ROOT}${CATALOG}"
- : $(( j += j + 1 ))
- : $(( i += i + 2 ))
+ : $(( j += 1 ))
+ : $(( i += 2 ))
else
error "${0}: whoah, shouldn't be here"
fi