From 5f94df198fd284dec1bc07e676ca7f973016a4db Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 31 Aug 2025 13:09:45 +0200 Subject: [PATCH] Offer instant retry of the installation on failure --- install/preflight/trap-errors.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/preflight/trap-errors.sh b/install/preflight/trap-errors.sh index de66219..57fbede 100755 --- a/install/preflight/trap-errors.sh +++ b/install/preflight/trap-errors.sh @@ -24,7 +24,11 @@ catch_errors() { echo " ▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀ ▀ ▀▀▀▀▀▀ " echo " " - echo "You can retry by running: bash ~/.local/share/omarchy/install.sh" + if gum confirm "Retry installation?"; then + bash ~/.local/share/omarchy/install.sh + else + echo "You can retry later by running: bash ~/.local/share/omarchy/install.sh" + fi } trap catch_errors ERR