Update install.sh

This commit is contained in:
santiyago 2025-06-04 23:17:48 +03:30 committed by GitHub
parent b3c8ec0ceb
commit 644c98b35f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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