From 44b107422d95647f1f0a9edec7b8960cb0764c93 Mon Sep 17 00:00:00 2001 From: Den Piligrim <89912505+vasiljevdenis@users.noreply.github.com> Date: Tue, 23 Dec 2025 15:10:49 +0300 Subject: [PATCH] url --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 5d9622a..d12338f 100644 --- a/install.sh +++ b/install.sh @@ -63,9 +63,9 @@ echo "Определяем URL панели 3x-ui..." UI_URL=$(get_xui_url) if [[ -n "$UI_URL" ]]; then - while [[ "$UI_URL" == */ ]]; do # remove trailing slash if present - UI_URL="${UI_URL%/}" - done + # Remove carriage returns and trailing whitespace, then strip trailing slashes + UI_URL="${UI_URL//$'\r'/}" + UI_URL="$(echo -n "$UI_URL" | sed -e 's/[[:space:]]*$//' -e 's:/*$::')" echo "URL панели 3x-ui: $UI_URL" else echo "Не удалось автоматически получить URL"