3
sync.sh
3
sync.sh
@@ -22,10 +22,9 @@ do
|
|||||||
if [[ "${REPO_PAGE}" == "" ]]; then
|
if [[ "${REPO_PAGE}" == "" ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
REPOS="${REPOS}\n${REPO_PAGE}"
|
REPOS="${REPOS} ${REPO_PAGE}"
|
||||||
PAGE=$((PAGE + 1))
|
PAGE=$((PAGE + 1))
|
||||||
done
|
done
|
||||||
REPOS=($(echo ${REPOS}))
|
|
||||||
|
|
||||||
getDefaultBranch() {
|
getDefaultBranch() {
|
||||||
curl -X GET "https://git.cluster.fun/api/v1/repos/AverageMarcus/${1}?access_token=${GITEA_TOKEN}" -H "accept: application/json" --silent | jq -r '.default_branch'
|
curl -X GET "https://git.cluster.fun/api/v1/repos/AverageMarcus/${1}?access_token=${GITEA_TOKEN}" -H "accept: application/json" --silent | jq -r '.default_branch'
|
||||||
|
|||||||
Reference in New Issue
Block a user