Update buildjdk.sh

This commit is contained in:
Tran Khanh Duy 2020-11-04 06:04:56 +07:00 committed by GitHub
parent 3db5841d72
commit e2f78169e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,4 +52,9 @@ fi
# mkdir -p build/linux-${TARGET_JDK}-normal-server-${JDK_DEBUG_LEVEL}
cd build/linux-${TARGET_JDK}-normal-server-${JDK_DEBUG_LEVEL}
make JOBS=4 images
make JOBS=4 images || \
error_code=$?
if [ "$error_code" -ne 0 ]; then
echo "Build failure, exited with code $error_code. Trying again."
make JOBS=4 images
fi