Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Created March 12, 2023 02:32
Show Gist options
  • Select an option

  • Save KyMidd/4c32a9610eafe4a094e1cfc65e871e6f to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/4c32a9610eafe4a094e1cfc65e871e6f to your computer and use it in GitHub Desktop.
# Calculate number of pages needed to get all repos
REPOS_PER_PAGE=100
PAGES_NEEDED=$(($TOTAL_REPO_COUNT / $REPOS_PER_PAGE))
if [ $(($TOTAL_REPO_COUNT % $REPOS_PER_PAGE)) -gt 0 ]; then
PAGES_NEEDED=$(($PAGES_NEEDED + 1))
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment