From cb6e43bf623e97e5af1a43c78649a38dc01259c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= Date: Mon, 22 Dec 2025 09:52:30 -0300 Subject: [PATCH] Bug 41490: Remove duplicated code from compare_es_to_db.pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Cohen Arazi --- misc/maintenance/compare_es_to_db.pl | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/misc/maintenance/compare_es_to_db.pl b/misc/maintenance/compare_es_to_db.pl index c76ff85d28..b1edab1a75 100755 --- a/misc/maintenance/compare_es_to_db.pl +++ b/misc/maintenance/compare_es_to_db.pl @@ -68,33 +68,6 @@ if ($help) { exit; } -my $help; -my $fix; - -GetOptions( - 'h|help' => \$help, - 'f|fix' => \$fix, -); - -my $usage = <<'ENDUSAGE'; - -This script finds differences between the records on the Koha database -and the Elasticsearch index. - -The `--fix` option switch can be passed to try fixing them. - -This script has the following parameters : - - -f|--fix Try to fix errors - -h|--help Print this message - -ENDUSAGE - -if ($help) { - print $usage; - exit; -} - foreach my $index ( ('biblios','authorities') ) { print "=================\n"; print "Checking $index\n"; -- 2.50.1 (Apple Git-155)