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"