forked from github/server
try to handle more potential errors
This commit is contained in:
parent
c70676ca2e
commit
0b58ca9176
|
@ -22,8 +22,8 @@ exit $2 # otherwise
|
||||||
function build() {
|
function build() {
|
||||||
assert_dir $SOURCE
|
assert_dir $SOURCE
|
||||||
cd $SOURCE
|
cd $SOURCE
|
||||||
[ -z $1 ] || ( git checkout $1 && git submodule update )
|
[ -z $1 ] || git checkout $1
|
||||||
git pull || abort "failed to update source. do you have local changes?"
|
( git pull && git submodule update ) || abort "failed to update source. do you have local changes?"
|
||||||
s/build || abort "build failed."
|
s/build || abort "build failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue