From 5b5f0ee5b802be45b494bbe2ff2c83b4a5d40fb8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Oct 2015 09:02:26 +0000 Subject: [PATCH] Bug 15014: Returns 0 if everything went fine Be kind and return 0 if the sample file has been generated correctly. Otherwise you are a bad guy and you make Plack returns an internal error (exited nonzero: 1 at /home/vagrant/kohaclone/tools/import_borrowers.pl line 390.) Signed-off-by: Josef Moravec Works as expected --- tools/import_borrowers.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/import_borrowers.pl b/tools/import_borrowers.pl index 6d2f0c2..c3d9ada 100755 --- a/tools/import_borrowers.pl +++ b/tools/import_borrowers.pl @@ -97,7 +97,7 @@ if ($input->param('sample')) { ); $csv->combine(@columnkeys); print $csv->string, "\n"; - exit 1; + exit 0; } my $uploadborrowers = $input->param('uploadborrowers'); my $matchpoint = $input->param('matchpoint'); -- 2.1.4