diff --git a/Makefile b/Makefile index 59c057b..2ddb1f5 100644 --- a/Makefile +++ b/Makefile @@ -21,14 +21,15 @@ down: todo: estructura build sync-to-github: - @echo "Synchronizing to GitHub..." - @if ! git remote | grep -q '^github$$'; then \ - echo "Adding GitHub remote..."; \ - git remote add github $(GITHUB_REPO_URL); \ - fi + @echo Synchronizing to GitHub... + @if not exist ".git\refs\remotes\github" ( \ + echo Adding GitHub remote... && \ + git remote add github $(GITHUB_REPO_URL) \ + ) git push github --all git push github --tags - @echo "Synchronization to GitHub complete." + @echo Synchronization to GitHub complete. + sync-to-gitea: @echo "Synchronizing to Gitea..."