Created
August 22, 2013 13:58
-
-
Save zanematthew/6307521 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
#!/usr/bin/env bash | |
#apt-get install -y git-all | |
## Themes | |
REPOS[0]='[email protected]:zanematthew/sample.git' | |
REPOS[1]='[email protected]: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