From 041c787b56efc6e785c4c964afa7510b6361578e Mon Sep 17 00:00:00 2001 From: michaldziurowski Date: Fri, 22 Aug 2025 14:18:28 +0200 Subject: [PATCH] retry cmd on failed install should take into consideration bare mode (#904) * retry cmd on failed install should take into consideration bare mode * A little duplication beats too much indirection --------- Co-authored-by: David Heinemeier Hansson --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b2c0141d..fc7918db 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,13 @@ OMARCHY_INSTALL=~/.local/share/omarchy/install catch_errors() { echo -e "\n\e[31mOmarchy installation failed!\e[0m" echo "The failing command was: \`$BASH_COMMAND\` (exit code: $?)" - echo "You can retry by running: bash ~/.local/share/omarchy/install.sh" + + if [[ -n $OMARCHY_BARE ]]; then + echo "You can retry by running: OMARCHY_BARE=true bash ~/.local/share/omarchy/install.sh" + else + echo "You can retry by running: bash ~/.local/share/omarchy/install.sh" + fi + echo "Get help from the community: https://discord.gg/tXFUdasqhY" }