From: Shane Date: Sun, 11 Jan 2026 03:10:51 +0000 (+0000) Subject: tidy Makefile X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=1e13c5f76be40566e1b8c52deae3715be8599be0;p=nutratech%2Fvps-root.git tidy Makefile --- diff --git a/Makefile b/Makefile index f5c1288..da8e8a0 100644 --- 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)"