Created
February 20, 2020 17:21
-
-
Save devfreddy/a2f23b17c1b51d85a967467b6048b83f to your computer and use it in GitHub Desktop.
Clone and Fork New Relic One open source apps
This file contains 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
#!/usr/bin/env bash | |
BASE="git@github.com:newrelic" | |
declare -a arr=( | |
"nr1-bigeventui" | |
"nr1-bootstrap-theme" | |
"nr1-browser-analyzer" | |
"nr1-cloud-optimize" | |
"nr1-community" | |
"nr1-container-explorer" | |
"nr1-customer-journey" | |
"nr1-datalyzer" | |
"nr1-deployment-analyzer" | |
"nr1-developer-map" | |
"nr1-eap-ctc-power-of-prediction" | |
"nr1-event-stream" | |
"nr1-financial-impact" | |
"nr1-flex-manager" | |
"nr1-github" | |
"nr1-graphiql-notebook" | |
"nr1-groundskeeper" | |
"nr1-igor" | |
"nr1-infra-geoops" | |
"nr1-kpi-dashboards" | |
"nr1-launchdarkly" | |
"nr1-maturity-checker" | |
"nr1-mountpointutilization" | |
"nr1-neon" | |
"nr1-nerd-split" | |
"nr1-nerdpack-layout-2x2-grid" | |
"nr1-nerdpack-layout-3-column" | |
"nr1-nerdpack-layout-3x2-grid" | |
"nr1-nerdpack-layout-4-column" | |
"nr1-nerdpack-layout-4x2-grid" | |
"nr1-nerdpack-layout-double-sidebar" | |
"nr1-nerdpack-layout-standard" | |
"nr1-nerdpack-layout-t-bone" | |
"nr1-network-telemetry" | |
"nr1-observability-maps" | |
"nr1-pageview-map" | |
"nr1-slo-r" | |
"nr1-status-pages" | |
"nr1-top" | |
"nr1-vividcortex" | |
"nr1-workshop" | |
) | |
for repo in "${arr[@]}" | |
do | |
# Clone and Fork, setting upstream to newrelic and origin to the fork | |
# Requires https://github.com/github/hub CLI | |
if [ ! -d ${BASE}/${repo} ]; then | |
hub clone ${BASE}/${repo} | |
(cd ${repo}; hub fork --remote-name=origin) | |
fi | |
# Just clone | |
# if [ ! -d ${BASE}/${repo} ]; then | |
# git clone "${BASE}/$repo" | |
# fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment