Last active
March 7, 2016 12:02
-
-
Save yusuketomoto/bef1890d858c1e5d03d1 to your computer and use it in GitHub Desktop.
clone from remote repo list
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
#!/bin/sh | |
filename=$1 | |
while read line ; do | |
git clone ${line} | |
done < ${filename} |
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
#!/bin/bash | |
cd $1 | |
FILES="./*" | |
for PATH in $FILES; | |
do | |
if [ -d $PATH ]; | |
then | |
cd $PATH | |
/usr/bin/git config --get remote.origin.url >/dev/null 2>&1 | |
if [ $? -eq 0 ]; | |
then | |
RESULT=`/usr/bin/git config --get remote.origin.url` | |
if [ '[email protected]:openframeworks/openFrameworks.git' != $RESULT ]; | |
then | |
echo $RESULT | |
fi | |
fi | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment