]> git.koha-community.org Git - koha.git/commit
Bug 33645: Make koha-foreach return 0 if it completes successfully
authorDavid Cook <dcook@prosentient.com.au>
Tue, 2 May 2023 00:16:30 +0000 (00:16 +0000)
committerdanyonsewell <danyonsewell@catalyst.net.nz>
Fri, 21 Jul 2023 02:46:49 +0000 (02:46 +0000)
commit2b57946d04764723ccc01df869d3f21a50037d73
treeb04c9d50203ce45d0deed705cf92145ee2bdd282
parente9ba6ed0dfdd7d17de2d92b041a6993a91215822
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 e8a187eb7422419592899ea12903f9ff29f96cfd)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit ef3985df0673304117f8c90fc673482d81410c06)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9f8b34e8d6b28400e38b89301cb72e0c31920c40)
Signed-off-by: danyonsewell <danyonsewell@catalyst.net.nz>
(cherry picked from commit 9f8b34e8d6b28400e38b89301cb72e0c31920c40)
debian/scripts/koha-foreach