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:
Peter Barker 2015-05-22 08:41:58 +10:00 committed by Andrew Tridgell
parent a81590f7ac
commit d4a34b3da1

View File

@ -292,7 +292,10 @@ fi
echo "Building $BUILD_TARGET" echo "Building $BUILD_TARGET"
make $BUILD_TARGET -j$NUM_PROCS || { make $BUILD_TARGET -j$NUM_PROCS || {
make clean make clean
make $BUILD_TARGET -j$NUM_PROCS make $BUILD_TARGET -j$NUM_PROCS || {
echo >&2 "$0: Build failed"
exit 1
}
} }
fi fi
popd popd