More small fixes

This commit is contained in:
Marcus Noble 2020-12-13 16:54:23 +00:00
parent c215f0109f
commit 03f4fce961
1 changed files with 6 additions and 6 deletions

12
sync.sh
View File

@ -43,7 +43,7 @@ gitlabMakeRepo() {
} }
for REPO in ${REPOS}; do for REPO in ${REPOS}; do
echo "Syncing ${REPO}" printf "\nSyncing ${REPO}"
rm -rf ${REPO} rm -rf ${REPO}
mkdir -p ${REPO} mkdir -p ${REPO}
@ -52,10 +52,10 @@ for REPO in ${REPOS}; do
BRANCH=$(getDefaultBranch ${REPO}) BRANCH=$(getDefaultBranch ${REPO})
git remote add gitea "${GITEA_BASE}${REPO}" git remote add gitea "${GITEA_BASE}${REPO}" 1> /dev/null
git remote add github "${GITHUB_BASE}${REPO}" git remote add github "${GITHUB_BASE}${REPO}" 1> /dev/null
git remote add bitbucket "${BITBUCKET_BASE}${REPO}" git remote add bitbucket "${BITBUCKET_BASE}${REPO}" 1> /dev/null
git remote add gitlab "${GITLAB_BASE}${REPO}" git remote add gitlab "${GITLAB_BASE}${REPO}" 1> /dev/null
failed() { failed() {
printf "\n⚠ Failed to sync ${REPO}\n\n" printf "\n⚠ Failed to sync ${REPO}\n\n"
@ -84,7 +84,7 @@ for REPO in ${REPOS}; do
printf "\n✅ Successfully synced ${REPO}\n\n" printf "\n✅ Successfully synced ${REPO}\n\n"
done done
if [ ! -n "${FAILED_MESSAGE}" ]; if [ -n "${FAILED_MESSAGE}" ];
then then
echo "Failed!" echo "Failed!"
printf ${FAILED_MESSAGE} printf ${FAILED_MESSAGE}