From bc3eab465bb056b16af001a4e2d33bdc155b4b25 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 18 May 2026 22:00:27 +0000 Subject: [PATCH] fix(legacy): use main branch install.sh for downgrade to preserve fork URLs Old version tags still contained install.sh referencing MHSanaei/3x-ui. Now always use the up-to-date install.sh from main, passing version as arg. https://claude.ai/code/session_01M6d5atbWjuLTj6UwRHoK5m --- x-ui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-ui.sh b/x-ui.sh index a46db00c..b541bbaf 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -166,8 +166,8 @@ legacy_version() { echo "Panel version cannot be empty. Exiting." exit 1 fi - # Use the entered panel version in the download link - install_command="bash <(curl -Ls "https://raw.githubusercontent.com/saeederamy/3x-ui/v$tag_version/install.sh") v$tag_version" + # Always use main branch install.sh so it pulls from the correct fork + install_command="bash <(curl -Ls \"https://raw.githubusercontent.com/saeederamy/3x-ui/main/install.sh\") v$tag_version" echo "Downloading and installing panel version $tag_version..." eval $install_command