Last active
September 10, 2018 09:55
-
-
Save Rory-Z/b66d93196be43c4e3a208991886c954d to your computer and use it in GitHub Desktop.
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 | |
mkdir emqx_rep | |
cd emq-relx | |
if [ ! -d "deps" ]; then | |
make | |
fi | |
cd deps | |
list=$(ls -F |grep "/$") | |
for v in ${list};do | |
cd ${v} | |
rep=$(git remote -v |grep fetch |awk '{print $2}') | |
git clone ${rep} ../../../emqx_rep/${v} | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment