kumquat-buildroot/package/brltty/0002-shell-prologue-runProgramTerminationCommands-used-a-.patch
James Hilliard 241db490b7 package/brltty: fix infinite loop in configure
Backport a patch to fix an infinite loop bug in configure.

Fixes:
 - http://autobuild.buildroot.net/results/82a/82af705f7ca282495461cb3994f5a7e6f64273e1
 - http://autobuild.buildroot.net/results/06c/06c9414a1ecbc1a147bc8dfddced03fc659af694
 - http://autobuild.buildroot.net/results/59e/59e36093f7e437a5a37037f7fa50ce2443c47fd3

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-10-30 17:02:57 +01:00

30 lines
1015 B
Diff

From 4503c2cbd3981ba1b50ec7ce287ab48c772b3a7f Mon Sep 17 00:00:00 2001
From: Dave Mielke <Dave@Mielke.cc>
Date: Sat, 15 Oct 2022 15:20:38 -0400
Subject: [PATCH] shell prologue: runProgramTerminationCommands used a bash
command. (dm)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[james.hilliard1@gmail.com: backport from upstream commit
4503c2cbd3981ba1b50ec7ce287ab48c772b3a7f]
---
brltty-prologue.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/brltty-prologue.sh b/brltty-prologue.sh
index 05b817742..6d1faf983 100644
--- a/brltty-prologue.sh
+++ b/brltty-prologue.sh
@@ -102,7 +102,7 @@ runProgramTerminationCommands() {
while [ "${programTerminationCommandCount}" -gt 0 ]
do
set -- $(getVariable "programTerminationCommand${programTerminationCommandCount}")
- let "programTerminationCommandCount -= 1"
+ programTerminationCommandCount=$((programTerminationCommandCount - 1))
local process="${1}"
local directory="${2}"
--
2.34.1