fix: reorder push repos

This commit is contained in:
Marcus Noble 2021-07-24 11:46:07 +01:00
parent 6d2fa1d87b
commit 363d4cbf20

View File

@ -73,10 +73,10 @@ for REPO in ${REPOS}; do
git pull --ff-only bitbucket ${BRANCH} 1> /dev/null || printf "\n Unable to pull from BitBucket\n\n" git pull --ff-only bitbucket ${BRANCH} 1> /dev/null || printf "\n Unable to pull from BitBucket\n\n"
git pull --ff-only gitlab ${BRANCH} 1> /dev/null || printf "\n Unable to pull from Gitlab\n\n" 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 -f github ${BRANCH} 1> /dev/null || { failed; }
git push -f github ${BRANCH} 1> /dev/null || { failed; continue; } git push -f bitbucket ${BRANCH} 1> /dev/null || { failed; }
git push -f bitbucket ${BRANCH} 1> /dev/null || { failed; continue; } git push -f gitlab ${BRANCH} 1> /dev/null || { failed; }
git push -f gitlab ${BRANCH} 1> /dev/null || { failed; continue; } git push gitea ${BRANCH} 1> /dev/null || { failed; }
cd .. cd ..
rm -rf ${REPO} rm -rf ${REPO}