Created
September 21, 2018 19:28
-
-
Save ianblenke/2b63150e30ec5f2aec7ea86ac2c5a008 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
org=${1:-sofwerx} | |
for page in $(seq 1 3); do | |
curl -H "Authorization: token $GITHUB_TOKEN" -sL 'https://api.github.com/orgs/'$org'/repos?per_page=100&page='$page | jq -r .[].clone_url ; done | xargs -P20 -L1 git clone -q $url ; | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment