mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
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
This commit is contained in:
parent
bb1571f87d
commit
bc3eab465b
1 changed files with 2 additions and 2 deletions
4
x-ui.sh
4
x-ui.sh
|
|
@ -166,8 +166,8 @@ legacy_version() {
|
||||||
echo "Panel version cannot be empty. Exiting."
|
echo "Panel version cannot be empty. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Use the entered panel version in the download link
|
# 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/v$tag_version/install.sh") v$tag_version"
|
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..."
|
echo "Downloading and installing panel version $tag_version..."
|
||||||
eval $install_command
|
eval $install_command
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue