diff --git a/build.sh b/build.sh index be4350c73..d63abe354 100755 --- a/build.sh +++ b/build.sh @@ -88,8 +88,13 @@ echo "ROOT_DIR : $ROOT_DIR" cd build/script chmod a+x build_opengauss.sh ./build_opengauss.sh -m ${build_version_mode} -3rd ${build_binarylib_dir} ${not_optimized} -pkg server -pm ${product_mode} -if [ "${wrap_binaries}"X = "YES"X ] -then + +if [ $? -ne 0 ]; then + echo "build_opengauss.sh failed, aborting." + exit 1 +fi + +if [ "${wrap_binaries}"X = "YES"X ]; then chmod a+x package_opengauss.sh if [ X$config_file = "X" ];then ./package_opengauss.sh -3rd ${build_binarylib_dir} -m ${build_version_mode} -pm ${product_mode}