Created
January 15, 2020 01:24
-
-
Save jackzampolin/fd5fab057cf77f3b12a07cde0e9e6696 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 | |
# NOTE: Must have https://hub.github.com/ installed locally and configured | |
# NOTE: This also requires `jq` | |
TMREPOS=$(hub api orgs/tendermint/repos -H "type=all" --paginate | jq '.[].name' -r) | |
COREPOS=$(hub api orgs/cosmos/repos -H "type=all" --paginate | jq '.[].name' -r) | |
for REPO in $TMREPOS; do | |
git clone [email protected]:tendermint/$REPO.git "$HOME/tendermint/$REPO" | |
done | |
for REPO in $COREPOS; do | |
git clone [email protected]:cosmos/$REPO.git "$HOME/cosmos/$REPO" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment