[hipl-commit] [trunk] Rev 4053: Clean up properly in case of failures that result in the script exiting.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Fri, 26 Mar 2010 01:24:58 +0200

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 26/03/2010 at 01:24:58
Revision: 4053
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Clean up properly in case of failures that result in the script exiting.

Modified:
  M  tools/hipl_autobuild.sh

=== modified file 'tools/hipl_autobuild.sh'
--- tools/hipl_autobuild.sh     2010-03-25 23:22:07 +0000
+++ tools/hipl_autobuild.sh     2010-03-25 23:24:19 +0000
@@ -66,9 +66,9 @@
 
 test $BRANCH_REVISION = $AUTOBUILD_REVISION && exit 0
 
-bzr checkout -q --lightweight $BRANCH_URL $CHECKOUT_DIR || exit 1
+bzr checkout -q --lightweight $BRANCH_URL $CHECKOUT_DIR || cleanup 1
 
-cd "$CHECKOUT_DIR" || exit 1
+cd "$CHECKOUT_DIR" || cleanup 1
 
 # Compile HIPL in different configurations
 # vanilla configuration

Other related posts:

  • » [hipl-commit] [trunk] Rev 4053: Clean up properly in case of failures that result in the script exiting. - Diego Biurrun