summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-21 18:05:41 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-21 18:05:41 +0000
commit3e19f0e4390e26376c130fafb3b0b910f10c4c63 (patch)
tree8bf0c419e30274f68c88acd7a59e1c44dc9047f2
parentf6a5cb3531f9333cfdf4b061e671a84a7ef6c530 (diff)
downloadmidipix_build-3e19f0e4390e26376c130fafb3b0b910f10c4c63.tar.bz2
midipix_build-3e19f0e4390e26376c130fafb3b0b910f10c4c63.tar.xz
build.sh: ensure ${BUILD_SCRIPT_RC} is set correctly.
-rwxr-xr-xbuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 60c78aba..5d213b85 100755
--- a/build.sh
+++ b/build.sh
@@ -15,8 +15,10 @@ for BUILD_TARGET_LC in $(subst_tgts invariants ${BUILD_TARGETS_META:-world}); do
BUILD_PACKAGES="$(lfilter "${BUILD_PACKAGES}" "${BUILD_PACKAGES_RESTART}")";
fi;
for PKG_NAME in ${BUILD_PACKAGES}; do
- pkg_setup_dispatch "${BUILD_TARGET}" "${PKG_NAME}" "${ARG_RESTART}" "${ARG_RESTART_AT}";
- case "${BUILD_SCRIPT_RC:=${?}}" in
+ pkg_setup_dispatch "${BUILD_TARGET}" "${PKG_NAME}" \
+ "${ARG_RESTART}" "${ARG_RESTART_AT}";
+ BUILD_SCRIPT_RC=${?};
+ case ${BUILD_SCRIPT_RC} in
0) log_msg succ "Finished \`${PKG_NAME}' build.";
: $((BUILD_NFINI+=1)); continue; ;;
*) log_msg fail "Build failed in \`${PKG_NAME}' (last return code ${BUILD_SCRIPT_RC}.).";