From 314f3e22d969b05ffd0590153707fd0c673987be 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 Signed-off-by: Tomas Cohen Arazi Works as expected here too. --- 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 ad29a669e8..42e7a8edc5 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.39.5