From 06395d81fb236bde0bf0e4cab5e2cf83659cdbb7 Mon Sep 17 00:00:00 2001 From: Den Piligrim <89912505+vasiljevdenis@users.noreply.github.com> Date: Tue, 23 Dec 2025 15:05:24 +0300 Subject: [PATCH] fix ui url --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f350f15..5d9622a 100644 --- a/install.sh +++ b/install.sh @@ -50,8 +50,8 @@ get_xui_url() { output=$(x-ui settings 2>/dev/null | grep "Access URL:" | head -1) if [[ -n "$output" ]]; then - # Trim everything before the URL and take it - echo "$output" | awk -F': ' '{print $2}' | sed 's/ *$//' + # Trim everything before the URL and remove trailing whitespace/CR and trailing slashes + echo "$output" | awk -F': ' '{print $2}' | sed -e 's/[[:space:]]*$//' -e 's:/*$::' return 0 else return 1