Skip to content

Instantly share code, notes, and snippets.

@2bbb
Last active March 7, 2016 12:22
Show Gist options
  • Select an option

  • Save 2bbb/887526c5d559efec4c9f to your computer and use it in GitHub Desktop.

Select an option

Save 2bbb/887526c5d559efec4c9f to your computer and use it in GitHub Desktop.
get list of addons remote
#!/bin/bash
cd $1
FILES="./*"
for FILEPATH in $FILES;
do
if [ -d $FILEPATH ];
then
cd $FILEPATH
/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