Fix error display when failing during early archinstall

This commit is contained in:
Ryan Hughes committed 2025-10-27 11:15:53 -04:00
1 parent 82f854054e
commit ec1405625f
1 file changed
+5 -1
+5 -1
View File
@@ -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
}