From 16a331ab5f654e332bfd0625f3621b99c13f61dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Mon, 19 Jan 2026 13:10:01 +0100 Subject: [PATCH] feat: Don't check upgrades if not in main branch or in DEV_MODE --- public/setup.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/public/setup.sh b/public/setup.sh index 8b43611d..f2d0d1bf 100755 --- a/public/setup.sh +++ b/public/setup.sh @@ -148,12 +148,22 @@ check_project_version() { return 0 fi - # Fetch latest changes without merging - git fetch origin >/dev/null 2>&1 || return 0 + # Skip check if DEV_MODE is enabled + if [ -f .env ] && grep -q "^DEV_MODE=true" .env 2>/dev/null; then + return 0 + fi # Get current branch local current_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "main") + # Skip check if not on main branch + if [ "$current_branch" != "main" ]; then + return 0 + fi + + # Fetch latest changes without merging + git fetch origin >/dev/null 2>&1 || return 0 + # Compare local and remote commits local local_commit=$(git rev-parse HEAD 2>/dev/null) local remote_commit=$(git rev-parse "origin/${current_branch}" 2>/dev/null)