From 22a6fb9e96a335a69956009ebef94fb31ac2b2fd 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. (cherry picked from commit 314f3e22d969b05ffd0590153707fd0c673987be) Signed-off-by: Frédéric Demians --- 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 81f4d491de..1caf7c4fe6 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