strolch/bootstrap.sh

23 lines
410 B
Bash
Raw Normal View History

#!/bin/bash
projectsFile="${PWD}/projects.lst"
echo "Cloning projects using SSH..."
2013-10-28 22:02:04 +01:00
cd ..
while read project; do
if [ "${project}" == "" ] ; then
continue;
fi
if [ -d "${project}" ] ; then
echo "Project ${project} already cloned."
else
2014-03-14 14:36:33 +01:00
if ! git clone "git@github.com:eitchnet/${project}.git" "${project}" ;then
exit 1
fi
echo
2013-12-24 16:56:02 +01:00
fi
done < ${projectsFile}
2013-12-24 16:56:02 +01:00
echo "Done."
exit 0