From ec1405625f276517fdab56bb603c423c45ec3ef3 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 27 Oct 2025 11:15:50 -0400 Subject: [PATCH] Fix error display when failing during early archinstall --- configs/airootfs/root/.automated_script.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/airootfs/root/.automated_script.sh b/configs/airootfs/root/.automated_script.sh index 7238fd6..2265c31 100644 --- a/configs/airootfs/root/.automated_script.sh +++ b/configs/airootfs/root/.automated_script.sh @@ -22,7 +22,11 @@ install_arch() { touch /var/log/omarchy-install.log start_log_output - install_base_system 2>&1 | sed -u 's/\x1b\[[0-9;]*[a-zA-Z]//g' >>/var/log/omarchy-install.log + + # Set CURRENT_SCRIPT for the trap to display better when nothing is returned for some reason + CURRENT_SCRIPT="install_base_system" + install_base_system > >(sed -u 's/\x1b\[[0-9;]*[a-zA-Z]//g' >>/var/log/omarchy-install.log) 2>&1 + unset CURRENT_SCRIPT stop_log_output }