mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 13:10:05 +00:00
Update install.sh
This commit is contained in:
parent
b3c8ec0ceb
commit
644c98b35f
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ main() {
|
|||
cd "$REPO_PATH" || { print_colored "$red" "Failed to cd to $REPO_PATH"; exit 1; }
|
||||
git fetch --all
|
||||
print_colored "$yellow" "Checking out and pulling latest 'main' branch..."
|
||||
current_branch=\$(git rev-parse --abbrev-ref HEAD)
|
||||
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
if [ "\$current_branch" != "main" ] && [ "\$current_branch" != "master" ]; then
|
||||
if git show-ref --verify --quiet refs/heads/main; then
|
||||
git checkout main
|
||||
|
|
Loading…
Reference in a new issue