try to handle more potential errors

This commit is contained in:
Enno Rehling 2014-12-21 13:41:21 +01:00
parent c70676ca2e
commit 0b58ca9176
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ exit $2 # otherwise
function build() {
assert_dir $SOURCE
cd $SOURCE
[ -z $1 ] || ( git checkout $1 && git submodule update )
git pull || abort "failed to update source. do you have local changes?"
[ -z $1 ] || git checkout $1
( git pull && git submodule update ) || abort "failed to update source. do you have local changes?"
s/build || abort "build failed."
}