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 <david@hey.com>
This commit is contained in:
michaldziurowski 2025-08-22 14:18:28 +02:00 committed by GitHub
parent 16b0919418
commit 041c787b56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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