#!/bin/bash
function update(){
for file in ` ls ./`
do
if [ -d ./"/"$file ]
then
echo "cd $file"
cd $file
if [ $file != "prj_gerrit_int" ]
then
git reset --hard
git checkout prj_gerrit_int
git pull
else
sh update.sh
fi
cd ..
fi
done
}
update
#!/bin/bash
function update(){
for file in ` ls ./ `
do
if [ -d ./"/"$file ]
then
if [ $file != "directory" ]
then
echo "cd $file"
cd $file
git reset --hard
git checkout prj_gerrit_int
git pull
cd ..
fi
fi
done
}
update