diff --git a/build.sh b/build.sh index 1588b27..eadd41a 100755 --- a/build.sh +++ b/build.sh @@ -7,9 +7,6 @@ buildp_ast() { if [ "${_param}" = "abort" ]; then rtl_log_msg fatalexit "Build aborted."; fi; - if [ -n "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}" ]; then - rtl_fileop rm "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}"; - fi; while [ "${_pids_niter}" -lt 8 ]; do _pids="$(rtl_lconcat "${_pids}" "${RTL_KILL_TREE_PIDS}")"; RTL_KILL_TREE_PIDS=""; if ! rtl_kill_tree "${$}" "TERM"\ @@ -28,6 +25,9 @@ buildp_ast() { done; rtl_log_msg notice "Reset package state for: %s" "${EX_PKG_DISPATCH_WAIT}"; fi; + if [ -n "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}" ]; then + rtl_fileop rm "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}"; + fi; }; buildp_dispatch_fail_pkg() {