From 735d30d7fb53364db7e9bea7fd5998db48b45f15 Mon Sep 17 00:00:00 2001 From: Adam Di Carlo Date: Mon, 13 Jan 2003 06:23:15 +0000 Subject: [PATCH] if the xslt process dies, this script should exit with a non-zero status --- cvstools/xslt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cvstools/xslt b/cvstools/xslt index e64aee0b1..dc1e71fab 100755 --- a/cvstools/xslt +++ b/cvstools/xslt @@ -129,7 +129,13 @@ my $startTime = time(); if (! $quiet) { print "$cmd\n"; } -system($cmd); +my $retVal = system($cmd); my $endTime = time(); print "Time: ", $endTime - $startTime, "s\n" if $time; + +if ($retVal) { + exit $retVal / 256; +} else { + exit 0; +} -- 2.50.1