We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a237a7 + a028c39 commit 80838d1Copy full SHA for 80838d1
docker/build.sh
@@ -31,8 +31,8 @@ main() {
31
32
CmakeGenerate
33
CmakeBuild $target
34
-
35
- if [[ "$DISABLE_POSTBUILD" != "true" ]]; then
+ BUILD_RESULT=$?
+ if [ "$DISABLE_POSTBUILD" != "true" -a "$BUILD_RESULT" == 0 ]; then
36
source "$BUILD_DIR/post_build.sh"
37
fi
38
}
@@ -70,7 +70,9 @@ CmakeGenerate() {
70
CmakeBuild() {
71
local target="$1"
72
[[ -n "$target" ]] && target="--target $target"
73
- cmake --build "$BUILD_DIR" --config $BUILD_TYPE $target -- -j$(nproc)
+ if cmake --build "$BUILD_DIR" --config $BUILD_TYPE $target -- -j$(nproc)
74
+ then return 0; else return 1;
75
+ fi
76
77
78
[[ $SOURCED == "false" ]] && main "$@" || echo "Sourced!"
0 commit comments