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

--- Comment #2 from John Vinke <[email protected]> ---
Created attachment 212445
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212445&action=edit
Bug 44194: Exit 0 from koha-dump --quiet after a successful dump

The last line of dump_instance, [ "$quiet" = "no" ] && echo "Done.",
returns 1 when --quiet is given, and under set -e the script exits 1
after a complete dump. Use an if instead.

Test plan:
1. sudo koha-dump --quiet kohadev ; echo $?
   Without the patch: 1. With the patch: 0.
2. sudo koha-dump kohadev ; echo $?  still prints Done. and 0.

Sponsored-by: Koha Solutions
Signed-off-by: John Vinke <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to