[hipl-commit] [trunk] Rev 3965: Exit with error value if checkout or changing into the checkout directory fails.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 16 Mar 2010 18:53:36 +0200

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 16/03/2010 at 18:53:36
Revision: 3965
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Exit with error value if checkout or changing into the checkout directory 
fails.

Modified:
  M  tools/hipl_autobuild

=== modified file 'tools/hipl_autobuild'
--- tools/hipl_autobuild        2010-03-12 12:01:58 +0000
+++ tools/hipl_autobuild        2010-03-16 16:53:00 +0000
@@ -49,9 +49,9 @@
 
 test $BRANCH_REVISION = $AUTOBUILD_REVISION && exit 0
 
-bzr checkout -q --lightweight $BRANCH_URL $CHECKOUT_DIR
+bzr checkout -q --lightweight $BRANCH_URL $CHECKOUT_DIR || exit 1
 
-cd "$CHECKOUT_DIR"
+cd "$CHECKOUT_DIR" || exit 1
 
 # Compile HIPL in different configurations
 # vanilla configuration

Other related posts:

  • » [hipl-commit] [trunk] Rev 3965: Exit with error value if checkout or changing into the checkout directory fails. - Diego Biurrun