Skip to content

Instantly share code, notes, and snippets.

@Rory-Z
Last active September 10, 2018 09:55
Show Gist options
  • Save Rory-Z/b66d93196be43c4e3a208991886c954d to your computer and use it in GitHub Desktop.
Save Rory-Z/b66d93196be43c4e3a208991886c954d to your computer and use it in GitHub Desktop.
#!/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