Force push if not gitea

This commit is contained in:
Marcus Noble 2021-02-05 20:59:04 +00:00
parent 8649480230
commit 6d2fa1d87b
1 changed files with 4 additions and 4 deletions

View File

@ -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}