From 3c156ab0599682270f1c678e6655dbc90891e353 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 18 Jul 2025 17:43:01 -0700 Subject: [PATCH] Better error handling and make these full scripts --- boot.sh | 2 ++ install.sh | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/boot.sh b/boot.sh index 9c947c4..e59cd0f 100644 --- a/boot.sh +++ b/boot.sh @@ -1,3 +1,5 @@ +#!/bin/bash + ascii_art=' ▄██████▄ ▄▄▄▄███▄▄▄▄ ▄████████ ▄████████ ▄████████ ▄█ █▄ ▄██ ▄ ███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ███ ███ ███▄▄▄███ diff --git a/install.sh b/install.sh index c032910..e6fa4f1 100644 --- a/install.sh +++ b/install.sh @@ -1,10 +1,12 @@ +#!/bin/bash + # Exit immediately if a command exits with a non-zero status set -e # Give people a chance to retry running the installation catch_errors() { - echo "Omarchy installation failed!" - echo "You can retry by running: source ~/.local/share/omarchy/install.sh" + echo -e "\e[31mOmarchy installation failed!\e[0m" + echo "You can retry by running: bash ~/.local/share/omarchy/install.sh" echo "Get help from the community: https://discord.gg/tXFUdasqhY" }