From 6d2fa1d87b58e31e848870975bba66758b84b3e0 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 5 Feb 2021 20:59:04 +0000 Subject: [PATCH] Force push if not gitea --- sync.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sync.sh b/sync.sh index a713017..29f7ddd 100755 --- a/sync.sh +++ b/sync.sh @@ -43,7 +43,7 @@ gitlabMakeRepo() { } for REPO in ${REPOS}; do - printf "\nSyncing ${REPO}" + printf "\n🔄 Syncing ${REPO}\n\n" rm -rf ${REPO} mkdir -p ${REPO} @@ -74,9 +74,9 @@ for REPO in ${REPOS}; do git pull --ff-only gitlab ${BRANCH} 1> /dev/null || printf "\nℹ️ Unable to pull from Gitlab\n\n" git push gitea ${BRANCH} 1> /dev/null || { failed; continue; } - git push github ${BRANCH} 1> /dev/null || { failed; continue; } - git push bitbucket ${BRANCH} 1> /dev/null || { failed; continue; } - git push gitlab ${BRANCH} 1> /dev/null || { failed; continue; } + git push -f github ${BRANCH} 1> /dev/null || { failed; continue; } + git push -f bitbucket ${BRANCH} 1> /dev/null || { failed; continue; } + git push -f gitlab ${BRANCH} 1> /dev/null || { failed; continue; } cd .. rm -rf ${REPO}