Offer instant retry of the installation on failure

This commit is contained in:
David Heinemeier Hansson
2025-08-31 13:09:45 +02:00
parent fe20e89e0e
commit 5f94df198f

View File

@@ -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