From 418159bd31d6740bf08322fae18e20b5883e7a13 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 13 Sep 2025 18:08:24 +0200 Subject: [PATCH] Use uniform echo style --- install/post-install/finished.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install/post-install/finished.sh b/install/post-install/finished.sh index b8e2866..e6acce2 100644 --- a/install/post-install/finished.sh +++ b/install/post-install/finished.sh @@ -1,25 +1,28 @@ stop_install_log +echo_in_style() { + echo "$1" | tte --canvas-width 0 --anchor-text c --frame-rate 640 print +} + clear tte -i ~/.local/share/omarchy/logo.txt --canvas-width 0 --anchor-text c --frame-rate 920 laseretch echo echo -echo "You're done!" | tte --canvas-width 0 --anchor-text c --frame-rate 640 wipe +echo_in_style "You're done!" # Display installation time if available if [[ -f $OMARCHY_INSTALL_LOG_FILE ]] && grep -q "Total:" "$OMARCHY_INSTALL_LOG_FILE" 2>/dev/null; then - echo echo TOTAL_TIME=$(tail -n 20 "$OMARCHY_INSTALL_LOG_FILE" | grep "^Total:" | sed 's/^Total:[[:space:]]*//') if [ -n "$TOTAL_TIME" ]; then - echo "Installation completed in $TOTAL_TIME" | tte --canvas-width 0 --anchor-text c --frame-rate 200 waves + echo_in_style "Installation completed in $TOTAL_TIME" fi fi if sudo test -f /etc/sudoers.d/99-omarchy-installer; then sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null echo - echo "Remember to remove USB installer!" | tte --canvas-width 0 --anchor-text c --frame-rate 640 wipe + echo_in_style "Remember to remove USB installer!" fi # Exit gracefully if user chooses not to reboot