diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2013-03-11 14:53:29 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-03-13 11:44:03 -0400 |
commit | 41a3efb3008e9669f48b2a7b4bdc60e5f510c08b (patch) | |
tree | 20eda11d6bc5e96f855902415922892038cf26ec /base/java-tools/pki | |
parent | a2e27c2169f507f428519067148ea360ca3d3059 (diff) | |
download | pki-41a3efb3008e9669f48b2a7b4bdc60e5f510c08b.tar.gz pki-41a3efb3008e9669f48b2a7b4bdc60e5f510c08b.tar.xz pki-41a3efb3008e9669f48b2a7b4bdc60e5f510c08b.zip |
Fixed CLI return code.
The Perl wrapper for CLI has been fixed to pass the error code returned
by Java clients.
Ticket #520
Diffstat (limited to 'base/java-tools/pki')
-rwxr-xr-x | base/java-tools/pki | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/java-tools/pki b/base/java-tools/pki index 07194c9ed..3555d3f37 100755 --- a/base/java-tools/pki +++ b/base/java-tools/pki @@ -111,4 +111,8 @@ foreach (@ARGV) { push(@args, quotemeta($_)); } -system("java -cp $ENV{CLASSPATH} com.netscape.cmstools.cli.MainCLI @args"); +my $command = "java -cp $ENV{CLASSPATH} com.netscape.cmstools.cli.MainCLI @args"; + +system($command) and do { + exit $? >> 8; +} |