mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Since in almost all cases, the EFI entries will get positioned above the USB, this notice is not needed.
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
stop_install_log
|
|
|
|
echo_in_style() {
|
|
echo "$1" | tte --canvas-width 0 --anchor-text c --frame-rate 640 print
|
|
}
|
|
|
|
clear
|
|
echo
|
|
tte -i ~/.local/share/omarchy/logo.txt --canvas-width 0 --anchor-text c --frame-rate 920 laseretch
|
|
echo
|
|
|
|
# Display installation time if available
|
|
if [[ -f $OMARCHY_INSTALL_LOG_FILE ]] && grep -q "Total:" "$OMARCHY_INSTALL_LOG_FILE" 2>/dev/null; then
|
|
echo
|
|
TOTAL_TIME=$(tail -n 20 "$OMARCHY_INSTALL_LOG_FILE" | grep "^Total:" | sed 's/^Total:[[:space:]]*//')
|
|
if [ -n "$TOTAL_TIME" ]; then
|
|
echo_in_style "Installed in $TOTAL_TIME"
|
|
fi
|
|
else
|
|
echo_in_style "Finished installing"
|
|
fi
|
|
|
|
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
|
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
|
fi
|
|
|
|
# Exit gracefully if user chooses not to reboot
|
|
if gum confirm --padding "0 0 0 $((PADDING_LEFT + 32))" --show-help=false --default --affirmative "Reboot Now" --negative "" ""; then
|
|
# Clear screen to hide any shutdown messages
|
|
clear
|
|
|
|
if [[ -n "${OMARCHY_CHROOT_INSTALL:-}" ]]; then
|
|
touch /var/tmp/omarchy-install-completed
|
|
exit 0
|
|
else
|
|
sudo reboot 2>/dev/null
|
|
fi
|
|
fi
|