From c391d497b4478079ce62bac256cb03ad9451472e Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 25 Apr 2026 19:06:18 +0300 Subject: [PATCH] fix mass_update: skip tests build, fix git http redirect, speed up deploy --- tools/utun_update.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/utun_update.sh b/tools/utun_update.sh index 87035524..7587b947 100755 --- a/tools/utun_update.sh +++ b/tools/utun_update.sh @@ -68,6 +68,10 @@ fi # Ensure pidfile is removed before start rm -f "$PIDFILE" +# Fix git remote redirect (http -> https) +GIT_URL=$(git remote get-url origin 2>/dev/null) +case "$GIT_URL" in http://*) echo "Fixing git remote: $GIT_URL -> https://${GIT_URL#http://}" && git remote set-url origin "https://${GIT_URL#http://}" ;; esac + # Git pull echo "Pulling latest changes..." if ! git pull; then @@ -93,8 +97,8 @@ else echo "Fast rebuild (incremental)..." fi -echo "Building with $JOBS parallel jobs..." -if ! make -j"$JOBS" 2>&1 | tee build.log; then +echo "Building with $JOBS parallel jobs (lib + src only)..." +if ! (make -j"$JOBS" -C lib && make -j"$JOBS" -C src) 2>&1 | tee build.log; then echo "ERROR: Build failed" >&2 exit 3 fi