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:
parent
16b0919418
commit
041c787b56
@ -10,7 +10,13 @@ OMARCHY_INSTALL=~/.local/share/omarchy/install
|
|||||||
catch_errors() {
|
catch_errors() {
|
||||||
echo -e "\n\e[31mOmarchy installation failed!\e[0m"
|
echo -e "\n\e[31mOmarchy installation failed!\e[0m"
|
||||||
echo "The failing command was: \`$BASH_COMMAND\` (exit code: $?)"
|
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"
|
echo "Get help from the community: https://discord.gg/tXFUdasqhY"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user