Skip to content

Instantly share code, notes, and snippets.

@arcseldon
Forked from sgmeyer/README.md
Created August 29, 2017 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcseldon/7fec4239656efe307f440e9ded373816 to your computer and use it in GitHub Desktop.
Save arcseldon/7fec4239656efe307f440e9ded373816 to your computer and use it in GitHub Desktop.

Cloning All Extensions

This gist contains a script for cloning all the extensions in the current directory. I recommend following the current steps, however you are free to clone these anywhere.

cd ~/Source
mkdir auth0-extensions && cd "$_"

curl https://gist.githubusercontent.com/sgmeyer/f622dd49e661c4b62e447530af2762b8/raw/c39122d57cf3ae41b6fd17019432b48edb8415e0/checkout-all-repos.sh" > checkout-all-repos.sh

bash checkout-all-repos.sh

Note: This script expects you to have SSH access to GitHub. It will fail if you do not have this setup. Be sure

#! /bin/bash
echo "Testing connectivity with GitHub...\r\n"
# Run the ssh command, but hide any output.
{
ssh -T git@github.com
CAN_CONNECT_TO_GITHUB="$(echo $?)"
}&> /dev/null
if [ $CAN_CONNECT_TO_GITHUB = '0' ]
then
echo "This tool requires SSH access to GitHub. Be sure to setup this up.\r\n"
exit
else
echo "Successfully connected to github\r\n"
fi
declare -a REPOS=(
"auth0-extensions/auth0-authentication-api-debugger-extension"
"auth0-extensions/auth0-delegated-administration-extension"
"auth0-extensions/auth0-bitbucket-deploy"
"auth0-extensions/auth0-github-deploy"
"auth0-extensions/auth0-gitlab-deploy"
"auth0-extensions/auth0-visualstudio-deploy"
"auth0-extensions/auth0-sso-dashboard-extension"
"auth0-extensions/auth0-logs-to-application-insights"
"auth0-extensions/auth0-logs-to-azure-blob-storage"
"auth0-extensions/auth0-logs-to-logentries"
"auth0-extensions/auth0-logs-to-loggly"
"auth0-extensions/auth0-logs-to-logstash"
"auth0-extensions/auth0-logs-to-mixpanel"
"auth0-extensions/auth0-logs-to-papertrail"
"auth0-extensions/auth0-logs-to-splunk"
"auth0-extensions/auth0-logs-to-sumologic"
"auth0-extensions/auth0-account-link-extension"
"auth0/custom-social-connections"
"auth0/auth0-authorization-extension"
"auth0/auth0-ldap-connector-health-monitor"
"auth0/auth0-management-api-webhooks"
"auth0/auth0-authentication-api-webhooks"
"auth0/auth0-user-import-export-extension"
"auth0/auth0-extension-realtime-logs"
"auth0-extensions/auth0-source-control-extension-tools"
"auth0-extensions/auth0-extension-ui"
"auth0-extensions/auth0-log-extension-tools"
"auth0-extensions/auth0-extension-hapi-tools"
"auth0-extensions/auth0-extension-tools"
"auth0-extensions/auth0-extensions-cli"
"auth0-extensions/auth0-extension-s3-tools"
"auth0-extensions/auth0-extension-mongo-tools"
"auth0-extensions/auth0-extension-ui-redux"
"auth0-extensions/auth0-box-platform-extension"
"auth0-extensions/auth0-slack-mfa"
"auth0-extensions/auth0-reset-tenant"
"auth0-extensions/auth0-deploy-cli-extension"
"auth0-extensions/authz-extension-automation-sample"
"auth0-extensions/auth0-user-invite-extension"
"auth0-extensions/auth0-extension-update-tester"
)
echo -ne "Cloning 0 of ${#REPOS[@]}\r"
COUNT=0
for REPO in "${REPOS[@]}"
do
{
git clone "git@github.com:$REPO.git"
}&> /dev/null
((COUNT++))
echo -ne "Cloning $COUNT of ${#REPOS[@]}\r"
done
echo "\n"
echo "Completed getting all extensions."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment