mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Use uniform echo style
This commit is contained in:
@@ -1,25 +1,28 @@
|
|||||||
stop_install_log
|
stop_install_log
|
||||||
|
|
||||||
|
echo_in_style() {
|
||||||
|
echo "$1" | tte --canvas-width 0 --anchor-text c --frame-rate 640 print
|
||||||
|
}
|
||||||
|
|
||||||
clear
|
clear
|
||||||
tte -i ~/.local/share/omarchy/logo.txt --canvas-width 0 --anchor-text c --frame-rate 920 laseretch
|
tte -i ~/.local/share/omarchy/logo.txt --canvas-width 0 --anchor-text c --frame-rate 920 laseretch
|
||||||
echo
|
echo
|
||||||
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
|
# Display installation time if available
|
||||||
if [[ -f $OMARCHY_INSTALL_LOG_FILE ]] && grep -q "Total:" "$OMARCHY_INSTALL_LOG_FILE" 2>/dev/null; then
|
if [[ -f $OMARCHY_INSTALL_LOG_FILE ]] && grep -q "Total:" "$OMARCHY_INSTALL_LOG_FILE" 2>/dev/null; then
|
||||||
echo
|
|
||||||
echo
|
echo
|
||||||
TOTAL_TIME=$(tail -n 20 "$OMARCHY_INSTALL_LOG_FILE" | grep "^Total:" | sed 's/^Total:[[:space:]]*//')
|
TOTAL_TIME=$(tail -n 20 "$OMARCHY_INSTALL_LOG_FILE" | grep "^Total:" | sed 's/^Total:[[:space:]]*//')
|
||||||
if [ -n "$TOTAL_TIME" ]; then
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
||||||
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
||||||
echo
|
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
|
fi
|
||||||
|
|
||||||
# Exit gracefully if user chooses not to reboot
|
# Exit gracefully if user chooses not to reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user