Created
March 7, 2016 12:27
-
-
Save 2bbb/25ac37d46908ced7a3dd to your computer and use it in GitHub Desktop.
clone cloned addons from $1 to $2
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
| #!/bin/bash | |
| cd $1 | |
| FILES="*" | |
| for FILEPATH in $FILES; | |
| do | |
| if [ -d $FILEPATH ]; | |
| then | |
| cd $FILEPATH | |
| git config --get remote.origin.url >/dev/null 2>&1 | |
| if [ $? -eq 0 ]; | |
| then | |
| RESULT=`git config --get remote.origin.url` | |
| if [ '[email protected]:openframeworks/openFrameworks.git' != $RESULT ]; | |
| then | |
| echo $RESULT | |
| git clone $RESULT $2/$FILEPATH | |
| fi | |
| fi | |
| cd .. | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment