Fix: Changed how setup.sh script is restarted.

This commit is contained in:
Keyitdev
2025-08-30 16:46:02 +02:00
parent f759e87431
commit c10bd95054
+2 -2
View File
@@ -34,7 +34,7 @@ warn() {
if command -v gum &>/dev/null; then if command -v gum &>/dev/null; then
gum style --foreground 11 "$*" gum style --foreground 11 "$*"
else else
echo -e "\e[33m⚠ $*\e[0m" echo -e "\e[33m⚠ $*\e[0m"
fi fi
} }
@@ -96,7 +96,7 @@ check_gum() {
if ! command -v gum &>/dev/null; then if ! command -v gum &>/dev/null; then
warn "Gum was not found - provides better UI experience" warn "Gum was not found - provides better UI experience"
if confirm "Install gum?"; then if confirm "Install gum?"; then
install_gum && { info "Restarting with gum..."; exec "$0" "$@"; } || warn "Using fallback UI" install_gum && { info "Restarting with gum..."; main; } || warn "Using fallback UI"
fi fi
fi fi
} }