mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Better error catching
This commit is contained in:
@ -2,11 +2,13 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Give people a chance to retry running the installation
|
# Give people a chance to retry running the installation
|
||||||
trap '
|
catch_errors() {
|
||||||
echo "Omarchy installation failed!"
|
echo "Omarchy installation failed!"
|
||||||
echo "You can retry by running: source ~/.local/share/omarchy/install.sh"
|
echo "You can retry by running: source ~/.local/share/omarchy/install.sh"
|
||||||
echo "Get help from the community: https://discord.gg/tXFUdasqhY"
|
echo "Get help from the community: https://discord.gg/tXFUdasqhY"
|
||||||
' ERR
|
}
|
||||||
|
|
||||||
|
trap catch_errors ERR
|
||||||
|
|
||||||
# Install everything
|
# Install everything
|
||||||
for f in ~/.local/share/omarchy/install/*.sh; do
|
for f in ~/.local/share/omarchy/install/*.sh; do
|
||||||
|
Reference in New Issue
Block a user