From c74ad0a013717407e57bde7db3bd2ee5c1e17619 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 4 Jul 2025 15:29:48 -0700 Subject: [PATCH] Catch errors and offer a retry --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 6fe4c7b..bd4465b 100644 --- a/install.sh +++ b/install.sh @@ -1,3 +1,9 @@ +# Exit immediately if a command exits with a non-zero status +set -e + +# Give people a chance to retry running the installation +trap 'echo "Omarchy installation failed! You can retry by running: source ~/.local/share/omarchy/install.sh"' ERR + # Install everything for f in ~/.local/share/omarchy/install/*.sh; do source "$f"; done