diff --git a/.gitignore b/.gitignore index ee2cc04..8562ef2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .env -reference-pds/ +reference-pds-hailey/ +reference-pds-bsky/ diff --git a/ref_pds_downloader.sh b/ref_pds_downloader.sh index 51d9a21..0a06797 100755 --- a/ref_pds_downloader.sh +++ b/ref_pds_downloader.sh @@ -1,5 +1,19 @@ -git clone --depth 1 https://github.com/haileyok/cocoon reference-pds +#!/bin/bash -cd reference-pds +echo "Downloading haileyok/cocoon" +git clone --depth 1 https://github.com/haileyok/cocoon reference-pds-hailey +rm -rf reference-pds-hailey/.git -rm -rf .git +echo "Downloading bluesky-social/atproto pds package" +mkdir reference-pds-bsky +cd reference-pds-bsky +git init +git remote add origin https://github.com/bluesky-social/atproto.git +git config core.sparseCheckout true +echo "packages/pds" >> .git/info/sparse-checkout +git pull --depth 1 origin main +mv packages/pds/* . +rm -rf packages .git +cd .. + +echo "Downloads complete!"