Catch errors and offer a retry

This commit is contained in:
David Heinemeier Hansson
2025-07-04 15:29:48 -07:00
parent 5957da5ecb
commit c74ad0a013

View File

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