strolch/bootstrap_https.sh

20 lines
360 B
Bash
Raw Normal View History

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