summaryrefslogtreecommitdiff
path: root/pullgits
blob: 7da8eb6bd0ad7f4a58814aeeb25c54c7c4f5b1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

WD=$([ "x" == "x$1" ] && echo $PWD || echo $1)

GITS=$(find $WD -type d | egrep '\.git$')

echo $GITS

exit 0

for i in $GITS
do
  cd $i
  git pull
done