diff options
author | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-09-18 11:51:28 +0100 |
---|---|---|
committer | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-09-18 11:51:28 +0100 |
commit | b0a14e013b318fa87714414b8ece95780527bddf (patch) | |
tree | a9427383ab6e38a4421c9c4313043f6dfcb8e90e /pullgits |
Initial commit
Diffstat (limited to 'pullgits')
-rwxr-xr-x | pullgits | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pullgits b/pullgits new file mode 100755 index 0000000..7da8eb6 --- /dev/null +++ b/pullgits @@ -0,0 +1,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 |