SITL: abort sim_vehicle.sh if build fails a second time
Previously a build could fail and we would end up running the old code
This commit is contained in:
parent
a81590f7ac
commit
d4a34b3da1
@ -292,7 +292,10 @@ fi
|
||||
echo "Building $BUILD_TARGET"
|
||||
make $BUILD_TARGET -j$NUM_PROCS || {
|
||||
make clean
|
||||
make $BUILD_TARGET -j$NUM_PROCS
|
||||
make $BUILD_TARGET -j$NUM_PROCS || {
|
||||
echo >&2 "$0: Build failed"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
fi
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user