From dbfad74ba3936ad3fd44ef1c39acc60cd985999b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 18 Jul 2025 17:33:51 -0700 Subject: [PATCH] Better error catching --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7801aa7..c032910 100644 --- a/install.sh +++ b/install.sh @@ -2,11 +2,13 @@ set -e # Give people a chance to retry running the installation -trap ' +catch_errors() { echo "Omarchy installation failed!" echo "You can retry by running: source ~/.local/share/omarchy/install.sh" echo "Get help from the community: https://discord.gg/tXFUdasqhY" -' ERR +} + +trap catch_errors ERR # Install everything for f in ~/.local/share/omarchy/install/*.sh; do