Only do a gum offer if we have gum

This commit is contained in:
David Heinemeier Hansson
2025-08-31 13:58:01 +02:00
parent 219d2d43e7
commit e15caaf713

View File

@@ -24,7 +24,7 @@ catch_errors() {
echo " ▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀ ▀ ▀▀▀▀▀▀ "
echo " "
if gum confirm "Retry installation?"; then
if command -v gum >/dev/null && gum confirm "Retry installation?"; then
bash ~/.local/share/omarchy/install.sh
else
echo "You can retry later by running: bash ~/.local/share/omarchy/install.sh"