[Project] fixed empty problem when iterating projects list

This commit is contained in:
Robert von Burg 2014-03-08 17:36:33 +01:00
parent d93b25751e
commit fcfdbbd9f7
6 changed files with 18 additions and 0 deletions

View File

@ -13,6 +13,9 @@ function logAheadCount() {
cd ..
while read project; do
if [ "${project}" == "" ] ; then
continue;
fi
cd "${project}"
logAheadCount
cd ..

View File

@ -6,6 +6,9 @@ echo "Cloning projects using SSH..."
cd ..
while read project; do
if [ "${project}" == "" ] ; then
continue;
fi
if [ -d "${project}" ] ; then
echo "Project ${project} already cloned."
else

View File

@ -6,6 +6,9 @@ echo "Cloning projects using HTTPS..."
cd ..
while read project; do
if [ "${project}" == "" ] ; then
continue;
fi
if [ -d "${project}" ] ; then
echo "Project ${project} already cloned."
else

View File

@ -4,6 +4,9 @@ projectsFile="${PWD}/projects.lst"
cd ..
while read project; do
if [ "${project}" == "" ] ; then
continue;
fi
echo "Pulling ${project}..."
cd ${project}
git pull

View File

@ -4,6 +4,9 @@ projectsFile="${PWD}/projects.lst"
cd ..
while read project; do
if [ "${project}" == "" ] ; then
continue;
fi
echo "Pushing ${project}..."
cd ${project}
git push

View File

@ -4,6 +4,9 @@ projectsFile="${PWD}/projects.lst"
cd ..
while read project; do
if [ "${project}" == "" ] ; then
continue;
fi
echo "Status of ${project}..."
cd ${project}
git status -s