@@ -, +, @@ koha-foreach --- debian/scripts/koha-foreach | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/debian/scripts/koha-foreach +++ a/debian/scripts/koha-foreach @@ -61,7 +61,9 @@ do # Change to the instance's home dir if required [ "$chdir" != "no" ] && eval cd ~$name"-koha" - koha-shell ${name} -c "${cmd}" + if ! koha-shell ${name} -c "${cmd}"; then + echo "${name}: non-zero status returned by \"${cmd}\"" + fi # Go back to the original dir if required [ "$chdir" != "no" ] && cd "$starting_dir" --