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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 20:45:10 +0000 (17:45 -0300)
commite8a187eb7422419592899ea12903f9ff29f96cfd
tree4e1bcc0fb688c6035891dde9c794b4b690b08cb8
parent9ccc5ccce0bac6076badc5f8186d953e04fdcc6c
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>
debian/scripts/koha-foreach