From e15caaf7133642eff87462b16b9220ca836391ec Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 31 Aug 2025 13:58:01 +0200 Subject: [PATCH] Only do a gum offer if we have gum --- install/preflight/trap-errors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/preflight/trap-errors.sh b/install/preflight/trap-errors.sh index 57fbede4..39381f1e 100755 --- a/install/preflight/trap-errors.sh +++ b/install/preflight/trap-errors.sh @@ -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"