Skip to content

Instantly share code, notes, and snippets.

@zanematthew
Created August 22, 2013 13:58
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 zanematthew/6307521 to your computer and use it in GitHub Desktop.
Save zanematthew/6307521 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#apt-get install -y git-all
## Themes
REPOS[0]='git@github.com:zanematthew/sample.git'
REPOS[1]='git@github.com:zanematthew/sample-2.git'
for repo in ${REPOS[*]}
do
echo "+--------------------------------"
echo "| Cloning repo: $repo"
echo "+--------------------------------"
echo
# get the repo name, we use to clone into
regex="/(.*).git"
[[ $repo =~ $regex ]] && dir="${BASH_REMATCH[1]}"
# git clone $repo "html/"$dir
echo "git clone $repo html/$dir"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment