Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created April 9, 2023 19:10
Show Gist options
  • Save KyMidd/bfa6b8b29acd70521ba2dfd48a586029 to your computer and use it in GitHub Desktop.
Save KyMidd/bfa6b8b29acd70521ba2dfd48a586029 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