[Koha-bugs] [Bug 25634] koha-foreach exits too early if any command has non-zero status

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 1 07:57:36 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25634

--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Cook from comment #0)
> I'm thinking the easiest solution would be to remove "set -e" from
> koha-foreach, and warn on individual failures.

Actually, the easiest solution was to wrap koha-shell in an if statement ad
just warn on what instance and command return a non-zero status.

"set -e" won't exit if the non-zero status is returned by a command wrapped by
an if statement.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list