mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-09 12:37:46 +00:00
Catch errors and offer a retry
This commit is contained in:
@@ -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
|
# Install everything
|
||||||
for f in ~/.local/share/omarchy/install/*.sh; do source "$f"; done
|
for f in ~/.local/share/omarchy/install/*.sh; do source "$f"; done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user