Koha-clms/debian/scripts
David Cook 9f8b34e8d6 Bug 33645: Make koha-foreach return 0 if it completes successfully
This patch adds an "exit 0" to the end of koha-foreach, so that it
returns a successful exit code if it reaches the bottom of the script
without errors.

Test plan:
0) `koha-foreach echo`
1) `echo $?`
2) Note that the exit status is 1
3) Apply patch
4) `./debian/scripts/koha-foreach echo`
5) `echo $?`
6) Note that the exit status is 0

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e8a187eb74)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit ef3985df06)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2023-06-13 16:27:43 +00:00
..
koha-create Bug 25622: Use special chars in DB password (koha-create) 2022-08-09 22:05:25 +00:00
koha-create-dirs Bug 20428: (QA follow-up) Remove redundant directory level 2018-05-14 10:36:39 -03:00
koha-disable Bug 22417: Add debian script koha-worker 2020-10-05 15:22:44 +02:00
koha-dump Bug 30511: Don't lock up entire database while running koha-dump 2022-05-10 23:09:09 -10:00
koha-dump-defaults Bug 17265 - Make koha-create-defaults less greedy 2017-01-13 11:33:11 +00:00
koha-elasticsearch Bug 26448: Don't overwrite commit parameter passed to koha-elasticsearch 2020-09-18 11:49:29 +02:00
koha-email-disable Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-email-enable Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-enable Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-foreach Bug 33645: Make koha-foreach return 0 if it completes successfully 2023-06-13 16:27:43 +00:00
koha-functions.sh Bug 27783: Add queue handling in packaging tools 2022-04-13 15:55:40 +02:00
koha-indexer Bug 32811: Remove useless lines for indexer.log 2023-03-10 16:58:44 +00:00
koha-list Bug 13937: Add support for Z39.50 responder to the Debian scripts 2019-10-08 14:40:07 +01:00
koha-mysql Bug 30468: Restore 'set -e' and remove echos 2022-09-29 15:22:55 +00:00
koha-mysqlcheck Bug 11404: koha-functions.sh introduced for reuse 2014-05-19 21:49:06 +00:00
koha-passwd Bug 13143 - Detect if the password is in a pipe 2016-01-27 06:27:08 +00:00
koha-plack Bug 31348: Make koha-plack stop gracefully 2022-10-14 22:02:59 +00:00
koha-rebuild-zebra Bug 20795: Inform the user about this change, add to pod 2018-08-14 12:35:13 +00:00
koha-remove Bug 22417: Add debian script koha-worker 2020-10-05 15:22:44 +02:00
koha-reset-passwd Bug 17746: (QA follow-up) Make set_password.pl generate a password if required 2019-03-28 11:58:20 +00:00
koha-restore Bug 10517: (QA follow-up) No need to remove second true 2022-05-03 11:19:50 -10:00
koha-run-backups Bug 21111: Add --exclude-indexes to koha-run-backups 2020-11-04 12:59:34 +01:00
koha-shell Bug 28519: Add lib to koha-shell 2021-06-17 15:59:40 +02:00
koha-sip Bug 24993: fix increment 2020-04-14 08:33:00 +01:00
koha-sitemap Bug 16733: Adjust other debian scripts using PERL5LIB 2017-01-20 14:15:27 +00:00
koha-translate Bug 18984: Remove NORMARC support 2021-10-07 15:36:40 +02:00
koha-upgrade-schema Bug 16749: Add is_instance check to koha-upgrade-schema 2017-02-17 13:20:58 +00:00
koha-upgrade-to-3.4 Bug 6651 - fix splitting of names when updating to 3.4 2011-09-13 10:29:12 +12:00
koha-worker Bug 32612: (QA follow-up) Remove worker.log 2023-02-14 21:50:24 +00:00
koha-z3950-responder Bug 25618: Fix wrong package install path for misc dir 2020-05-29 11:44:54 +02:00
koha-zebra Bug 18909: Enable the maximum zebra records size to be specified per instance 2019-01-25 16:14:48 +00:00