Bug 11278: (follow-up) Return an exit value (1) if the module is not found.
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 27 Jan 2014 13:45:21 +0000 (14:45 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 00:59:33 +0000 (00:59 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
misc/migration_tools/bulkmarcimport.pl

index ff6987a..4a47de0 100755 (executable)
@@ -53,7 +53,7 @@ GetOptions(
     't|test' => \$test_parameter,
     's' => \$skip_marc8_conversion,
     'c:s' => \$char_encoding,
-    'v:i' => \$verbose,
+    'v:+' => \$verbose,
     'fk' => \$fk_off,
     'm:s' => \$format,
     'l:s' => \$logfile,
@@ -102,7 +102,7 @@ if(defined $localcust) { #local customize module
         }
         else {
             print "WARNING: customize module $localcust.pm not found!\n";
-            exit;
+            exit 1;
         }
     }
     require $localcust if $localcust;