installer: split runtime and installer paths in finalizer

This commit is contained in:
Ryan Hughes
2026-06-04 18:34:35 -04:00
parent 58f03a9216
commit 88f3181124
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -118,8 +118,9 @@ run_logged() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting: $script" >>"$OMARCHY_INSTALL_LOG_FILE"
# Use bash -c to create a clean subshell
bash -c "source '$script'" </dev/null >>"$OMARCHY_INSTALL_LOG_FILE" 2>&1
# Use a clean subshell, but keep errexit so failures inside sourced scripts
# cannot be hidden by a later successful command in the same script.
bash -eE -c 'source "$1"' bash "$script" </dev/null >>"$OMARCHY_INSTALL_LOG_FILE" 2>&1
local exit_code=$?