From db11df3ac163f4b17e600ea2cd182a77fa6b5b85 Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Fri, 6 Oct 2023 14:55:46 +0200
Subject: [PATCH] - fixed exit codes if nothing was wrong

---
 bin/slubsipbuilderbagit.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/slubsipbuilderbagit.pl b/bin/slubsipbuilderbagit.pl
index 14724f9..40e8849 100644
--- a/bin/slubsipbuilderbagit.pl
+++ b/bin/slubsipbuilderbagit.pl
@@ -106,16 +106,16 @@ GetOptions(
     "man"                        => \$man,                                    # optional
     "print_sip_version"          => sub {
         say "supported sip version is " . SLUB::LZA::SIPBuilderBagIt::get_sip_version();
-        exit 1;
+        exit 0;
     },                                                                        # optional
     "version"                    => sub {
         say "version is " . $SLUB::LZA::SIPBuilderBagIt::VERSION;
-        exit 1;
+        exit 0;
     }
 ) or pod2usage(2);
 
 # help
-if ($help) { pod2usage(1); exit 1; }
+if ($help) { pod2usage(1); exit 0; }
 # man
 if ($man) { pod2usage(-exitval => 0, -verbose => 2); }
 # save
-- 
GitLab