From fde637ec21249318961414165b460cbf0724a9bb Mon Sep 17 00:00:00 2001 From: Rob Zolkos Date: Thu, 2 Apr 2026 10:37:51 -0400 Subject: [PATCH] Preserve package download progress during updates (#5188) --- bin/omarchy-update-perform | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/omarchy-update-perform b/bin/omarchy-update-perform index 9c22adf2..8965c0c2 100755 --- a/bin/omarchy-update-perform +++ b/bin/omarchy-update-perform @@ -2,13 +2,16 @@ set -e +# Run the update inside a PTY so pacman/yay keep showing download progress +# while still logging the full session for later analysis. +if [[ -z $OMARCHY_UPDATE_LOGGED ]]; then + script_command=$(printf '%q ' "$0" "$@") + exec env OMARCHY_UPDATE_LOGGED=1 script -qefc "$script_command" "/tmp/omarchy-update.log" +fi + # Ensure screensaver/sleep doesn't set in during updates hyprctl dispatch tagwindow +noidle &>/dev/null || true -# Capture update logs (CLICOLOR_FORCE keeps gum styled when stdout is piped through tee) -export CLICOLOR_FORCE=1 -exec > >(tee "/tmp/omarchy-update.log") 2>&1 - # Perform all update steps omarchy-update-keyring omarchy-update-available-reset