2
1

0002-shell-prologue-runProgramTerminationCommands-used-a-.patch 1015 B

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