Change megapull to use multiple exec
This commit is contained in:
parent
fba21c4f5b
commit
027bb9a340
@ -1,4 +1,4 @@
|
||||
# Pull all git repos within the current directory
|
||||
function megapull
|
||||
find . -type d -exec sh -c 'if [ -d "$0/.git" ]; then git -C "$0" pull; fi' {} \;
|
||||
find . -type d -exec test -d {}/.git \; -exec echo "Working on {}" \; -exec git -C {} pull \;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user