diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-21 18:05:41 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-21 18:05:41 +0000 |
commit | 3e19f0e4390e26376c130fafb3b0b910f10c4c63 (patch) | |
tree | 8bf0c419e30274f68c88acd7a59e1c44dc9047f2 | |
parent | f6a5cb3531f9333cfdf4b061e671a84a7ef6c530 (diff) | |
download | midipix_build-3e19f0e4390e26376c130fafb3b0b910f10c4c63.tar.bz2 midipix_build-3e19f0e4390e26376c130fafb3b0b910f10c4c63.tar.xz |
build.sh: ensure ${BUILD_SCRIPT_RC} is set correctly.
-rwxr-xr-x | build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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}.)."; |