tidy Makefile
authorShane <chown_tee@proton.me>
Sun, 11 Jan 2026 03:10:51 +0000 (03:10 +0000)
committerShane <chown_tee@proton.me>
Sun, 11 Jan 2026 03:12:34 +0000 (03:12 +0000)
Makefile

index f5c12880584c7a57ca1a0da08a6071e49a794893..da8e8a02f9ad6cb77f445af87785f46873bb4127 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -182,16 +182,8 @@ endif
        @# Auto-append .git if missing
        $(eval OLD_GIT := $(if $(filter %.git,$(OLD)),$(OLD),$(OLD).git))
        $(eval NEW_GIT := $(if $(filter %.git,$(NEW)),$(NEW),$(NEW).git))
-       @if [ "$(OLD_GIT)" != "$(NEW_GIT)" ]; then \
-               echo "Moving $(OLD_GIT) to $(NEW_GIT) on $(VPS_HOST)..."; \
-               ssh $(VPS) "mkdir -p /srv/git/$$(dirname $(NEW_GIT)) && mv /srv/git/$(OLD_GIT) /srv/git/$(NEW_GIT)"; \
-               echo "Repository moved."; \
-       else \
-               echo "Source and destination are the same. Skipping move."; \
-       fi
+       [ "$(OLD_GIT)" = "$(NEW_GIT)" ] || ssh $(VPS) "mkdir -p /srv/git/$$(dirname $(NEW_GIT)) && mv /srv/git/$(OLD_GIT) /srv/git/$(NEW_GIT)" 
        @echo "Marking directory as safe..."
        ssh $(VPS) "git config --global --add safe.directory /srv/git/$(NEW_GIT)"
-       @if [ "$(OLD_GIT)" != "$(NEW_GIT)" ]; then \
-               echo "  Don't forget to update your local remote URL:"; \
-       fi
-       echo "  git remote set-url helio-web ssh://$(VPS_USER)@$(VPS_HOST)/srv/git/$(NEW_GIT)"
+       @echo "Don't forget to update your local remote URL:"
+       @echo "git remote set-url helio-web ssh://$(VPS_USER)@$(VPS_HOST)/srv/git/$(NEW_GIT)"