summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-05-08 08:17:09 +0200
committerDanny Baumann <dannybaumann@web.de>2007-05-08 08:17:09 +0200
commit40c24085938a34e75e4822974cc992c100697ad3 (patch)
tree45675a236377372a3382d624910ee3c27d04d426 /src
parentedca4ee3bb49feab278bf3190b4465458f536ccf (diff)
downloadbcop-40c24085938a34e75e4822974cc992c100697ad3.tar.gz
bcop-40c24085938a34e75e4822974cc992c100697ad3.tar.bz2
Delete target files if an error occured.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bcop.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bcop.in b/src/bcop.in
index 5b1fb8c..cdb34ea 100755
--- a/src/bcop.in
+++ b/src/bcop.in
@@ -60,6 +60,7 @@ if [ -e $xmlfile ]; then
xsltproc --stringparam "header" "true" $xsltdir/bcop.xslt $xmlfile > "$hdrfile"
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
+ rm -f $hdrfile
exit $RETVAL
fi
fi
@@ -67,6 +68,7 @@ if [ -e $xmlfile ]; then
xsltproc --stringparam "source" "true" $xsltdir/bcop.xslt $xmlfile > "$srcfile"
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
+ rm -f $srcfile
exit $RETVAL
fi
fi