1 |
commit: 8df873bb66a2cb9813cc0a1b7b404ff85de26fce |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 2 06:19:06 2021 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 2 06:19:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/build-docbook-catalog.git/commit/?id=8df873bb |
7 |
|
8 |
switch from old `let` to newer `: $((...))` syntax |
9 |
|
10 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
11 |
|
12 |
build-docbook-catalog | 12 ++++++------ |
13 |
1 file changed, 6 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/build-docbook-catalog b/build-docbook-catalog |
16 |
index 6950f3e..669cbf8 100755 |
17 |
--- a/build-docbook-catalog |
18 |
+++ b/build-docbook-catalog |
19 |
@@ -354,21 +354,21 @@ populate_entities() { |
20 |
while [[ ${i} -lt ${#entities[@]} || ${j} -lt ${#avail[@]} ]]; do |
21 |
if [[ ${i} -ge ${#entities[@]} ]]; then |
22 |
echo "Warning: Extra ISO entities file: ${avail[j]}" |
23 |
- let j=j+1 |
24 |
+ : $(( j += 1 )) |
25 |
elif [[ ${j} -ge ${#avail[@]} ]]; then |
26 |
echo "Warning: Entities file not found: ${entities[i]}" |
27 |
- let i=i+2 |
28 |
+ : $(( i += 2 )) |
29 |
elif [[ ${avail[j]} < ${entities[i]} ]]; then |
30 |
echo "Warning: Extra ISO entities file: ${avail[j]}" |
31 |
- let j=j+1 |
32 |
+ : $(( j += j + 1 )) |
33 |
elif [[ ${entities[i]} < ${avail[j]} ]]; then |
34 |
echo "Warning: Entities file not found: ${entities[i]}" |
35 |
- let i=i+2 |
36 |
+ : $(( i += i + 2 )) |
37 |
elif [[ ${entities[i]} == ${avail[j]} ]]; then |
38 |
xmlcatalog --noout --add "public" "${entities[i+1]}" \ |
39 |
"file://${isodir}/${entities[i]}" "${ROOT}${CATALOG}" |
40 |
- let j=j+1 |
41 |
- let i=i+2 |
42 |
+ : $(( j += j + 1 )) |
43 |
+ : $(( i += i + 2 )) |
44 |
else |
45 |
error "${0}: whoah, shouldn't be here" |
46 |
fi |